@haiilo/catalyst-angular 13.5.1-beta → 14.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 (50) hide show
  1. package/fesm2022/haiilo-catalyst-angular.mjs +1942 -0
  2. package/fesm2022/haiilo-catalyst-angular.mjs.map +1 -0
  3. package/package.json +9 -17
  4. package/types/haiilo-catalyst-angular.d.ts +802 -0
  5. package/esm2020/haiilo-catalyst-angular.mjs +0 -5
  6. package/esm2020/lib/catalyst.module.mjs +0 -118
  7. package/esm2020/lib/datetime/datetime.component.mjs +0 -137
  8. package/esm2020/lib/dialog/dialog-actions.component.mjs +0 -27
  9. package/esm2020/lib/dialog/dialog-header.component.mjs +0 -43
  10. package/esm2020/lib/dialog/dialog.component.mjs +0 -60
  11. package/esm2020/lib/dialog/dialog.service.mjs +0 -68
  12. package/esm2020/lib/directives/angular-component-lib/utils.mjs +0 -59
  13. package/esm2020/lib/directives/boolean-value-accessor.mjs +0 -38
  14. package/esm2020/lib/directives/date-value-accessor.mjs +0 -90
  15. package/esm2020/lib/directives/proxies.mjs +0 -786
  16. package/esm2020/lib/directives/radio-value-accessor.mjs +0 -35
  17. package/esm2020/lib/directives/select-value-accessor-decorator.mjs +0 -24
  18. package/esm2020/lib/directives/select-value-accessor.mjs +0 -35
  19. package/esm2020/lib/directives/text-value-accessor.mjs +0 -35
  20. package/esm2020/lib/directives/time-value-accessor.mjs +0 -73
  21. package/esm2020/lib/directives/value-accessor-decorator.mjs +0 -55
  22. package/esm2020/lib/directives/value-accessor.mjs +0 -40
  23. package/esm2020/lib/injection-token.mjs +0 -21
  24. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -34
  25. package/esm2020/public-api.mjs +0 -19
  26. package/fesm2015/haiilo-catalyst-angular.mjs +0 -1700
  27. package/fesm2015/haiilo-catalyst-angular.mjs.map +0 -1
  28. package/fesm2020/haiilo-catalyst-angular.mjs +0 -1679
  29. package/fesm2020/haiilo-catalyst-angular.mjs.map +0 -1
  30. package/index.d.ts +0 -5
  31. package/lib/catalyst.module.d.ts +0 -24
  32. package/lib/datetime/datetime.component.d.ts +0 -29
  33. package/lib/dialog/dialog-actions.component.d.ts +0 -12
  34. package/lib/dialog/dialog-header.component.d.ts +0 -29
  35. package/lib/dialog/dialog.component.d.ts +0 -35
  36. package/lib/dialog/dialog.service.d.ts +0 -49
  37. package/lib/directives/angular-component-lib/utils.d.ts +0 -9
  38. package/lib/directives/boolean-value-accessor.d.ts +0 -9
  39. package/lib/directives/date-value-accessor.d.ts +0 -17
  40. package/lib/directives/proxies.d.ts +0 -477
  41. package/lib/directives/radio-value-accessor.d.ts +0 -8
  42. package/lib/directives/select-value-accessor-decorator.d.ts +0 -14
  43. package/lib/directives/select-value-accessor.d.ts +0 -8
  44. package/lib/directives/text-value-accessor.d.ts +0 -8
  45. package/lib/directives/time-value-accessor.d.ts +0 -15
  46. package/lib/directives/value-accessor-decorator.d.ts +0 -18
  47. package/lib/directives/value-accessor.d.ts +0 -18
  48. package/lib/injection-token.d.ts +0 -7
  49. package/lib/tooltip/tooltip.directive.d.ts +0 -16
  50. package/public-api.d.ts +0 -18
@@ -1,1700 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Directive, HostListener, Optional, SkipSelf, Component, ViewEncapsulation, ContentChild, Input, ChangeDetectionStrategy, EventEmitter, Inject, Output, Self, Host, NgModule, Injectable } from '@angular/core';
3
- import * as i3 from '@haiilo/catalyst';
4
- import { catI18nRegistry, catIconRegistry, catNotificationService } from '@haiilo/catalyst';
5
- import log from 'loglevel';
6
- import * as i1$1 from '@angular/cdk/dialog';
7
- import { DialogModule } from '@angular/cdk/dialog';
8
- import * as i2 from '@angular/common';
9
- import { CommonModule } from '@angular/common';
10
- import { defineCustomElements } from '@haiilo/catalyst/loader';
11
- import * as i1 from '@angular/forms';
12
- import { Validators, NG_VALUE_ACCESSOR } from '@angular/forms';
13
- import { __decorate } from 'tslib';
14
- import { fromEvent } from 'rxjs';
15
-
16
- // It is important to declare the InjectionTokens first
17
- const CAT_LOG_TOKEN = new InjectionToken('CAT_LOG', {
18
- providedIn: 'root',
19
- factory: () => log
20
- });
21
- const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
22
- providedIn: 'root',
23
- factory: () => catI18nRegistry
24
- });
25
- const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
26
- providedIn: 'root',
27
- factory: () => catIconRegistry
28
- });
29
- const CAT_NOTIFICATION_SERVICE_TOKEN = new InjectionToken('CAT_NOTIFICATION_SERVICE', {
30
- providedIn: 'root',
31
- factory: () => catNotificationService
32
- });
33
-
34
- class ValueAccessor {
35
- constructor(el) {
36
- this.el = el;
37
- this.onChange = () => { };
38
- this.onTouched = () => { };
39
- }
40
- writeValue(value) {
41
- this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
42
- }
43
- handleChangeEvent(value) {
44
- if (value !== this.lastValue) {
45
- this.lastValue = value;
46
- this.onChange(value);
47
- }
48
- }
49
- _handleBlurEvent() {
50
- this.onTouched();
51
- }
52
- registerOnChange(fn) {
53
- this.onChange = fn;
54
- }
55
- registerOnTouched(fn) {
56
- this.onTouched = fn;
57
- }
58
- setDisabledState(isDisabled) {
59
- this.el.nativeElement.disabled = isDisabled;
60
- }
61
- }
62
- ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
63
- ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessor, decorators: [{
65
- type: Directive,
66
- args: [{}]
67
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
68
- type: HostListener,
69
- args: ['focusout']
70
- }] } });
71
-
72
- class DateValueAccessor extends ValueAccessor {
73
- constructor(el, ngControl) {
74
- super(el);
75
- this.ngControl = ngControl;
76
- }
77
- get nativeElement() {
78
- return this.el.nativeElement;
79
- }
80
- ngAfterViewInit() {
81
- var _a, _b;
82
- if ((_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.hasValidator(Validators.required)) {
83
- this.el.nativeElement.required = true;
84
- }
85
- }
86
- writeValue(value) {
87
- if (!this.el.nativeElement.range) {
88
- return super.writeValue(this.toISO(value));
89
- }
90
- else if (value instanceof Array) {
91
- const data = [this.toISO(value[0]), this.toISO(value[1])];
92
- return super.writeValue(JSON.stringify(data));
93
- }
94
- return super.writeValue(undefined);
95
- }
96
- handleChangeEvent(value) {
97
- var _a;
98
- if (!this.el.nativeElement.range) {
99
- return super.handleChangeEvent(this.toDate(value));
100
- }
101
- else if (typeof value === 'string') {
102
- const data = JSON.parse(value).map(this.toDate);
103
- (_a = data[1]) === null || _a === void 0 ? void 0 : _a.setHours(23, 59, 59, 999);
104
- return super.handleChangeEvent(data);
105
- }
106
- super.handleChangeEvent(null);
107
- }
108
- updateErrors() {
109
- setTimeout(() => {
110
- var _a, _b, _c;
111
- this.el.nativeElement.errors =
112
- ((_c = (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c.required) && !this.el.nativeElement.value ? { required: true } : null;
113
- });
114
- }
115
- toISO(value) {
116
- if (value instanceof Date) {
117
- const year = value.getFullYear();
118
- const month = (value.getMonth() + 1).toString().padStart(2, '0');
119
- const day = value.getDate().toString().padStart(2, '0');
120
- return `${year}-${month}-${day}`;
121
- }
122
- return undefined;
123
- }
124
- toDate(value) {
125
- var _a;
126
- const [match, year, month, day] = (_a = value === null || value === void 0 ? void 0 : value.match(/^(\d{4})-(\d{2})-(\d{2})/)) !== null && _a !== void 0 ? _a : [];
127
- return match ? new Date(Number(year), Number(month) - 1, Number(day)) : null;
128
- }
129
- }
130
- DateValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
131
- DateValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: DateValueAccessor, selector: "cat-date, cat-date-inline", host: { listeners: { "catChange": "handleChangeEvent($event.target.value); updateErrors()", "catBlur": "updateErrors()" } }, providers: [
132
- {
133
- provide: NG_VALUE_ACCESSOR,
134
- useExisting: DateValueAccessor,
135
- multi: true
136
- }
137
- ], usesInheritance: true, ngImport: i0 });
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateValueAccessor, decorators: [{
139
- type: Directive,
140
- args: [{
141
- /* tslint:disable-next-line:directive-selector */
142
- selector: 'cat-date, cat-date-inline',
143
- host: {
144
- '(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
145
- '(catBlur)': 'updateErrors()'
146
- },
147
- providers: [
148
- {
149
- provide: NG_VALUE_ACCESSOR,
150
- useExisting: DateValueAccessor,
151
- multi: true
152
- }
153
- ]
154
- }]
155
- }], ctorParameters: function () {
156
- return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
157
- type: Optional
158
- }, {
159
- type: SkipSelf
160
- }] }];
161
- } });
162
-
163
- class TimeValueAccessor extends ValueAccessor {
164
- constructor(el, ngControl) {
165
- super(el);
166
- this.ngControl = ngControl;
167
- }
168
- get nativeElement() {
169
- return this.el.nativeElement;
170
- }
171
- ngAfterViewInit() {
172
- var _a, _b;
173
- if ((_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.hasValidator(Validators.required)) {
174
- this.el.nativeElement.required = true;
175
- }
176
- }
177
- writeValue(value) {
178
- if (value && value instanceof Date) {
179
- const hours = value.getHours().toString().padStart(2, '0');
180
- const mins = value.getMinutes().toString().padStart(2, '0');
181
- return super.writeValue(`${hours}:${mins}`);
182
- }
183
- return super.writeValue(undefined);
184
- }
185
- handleChangeEvent(value) {
186
- var _a;
187
- const [match, hours, mins] = (_a = value === null || value === void 0 ? void 0 : value.match(/^(\d{2}):(\d{2})/)) !== null && _a !== void 0 ? _a : [];
188
- if (match) {
189
- const date = new Date();
190
- date.setHours(Number(hours), Number(mins), 0, 0);
191
- return super.handleChangeEvent(date);
192
- }
193
- return super.handleChangeEvent(null);
194
- }
195
- updateErrors() {
196
- setTimeout(() => {
197
- var _a, _b, _c;
198
- this.el.nativeElement.errors =
199
- ((_c = (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c.required) && !this.el.nativeElement.value ? { required: true } : null;
200
- });
201
- }
202
- }
203
- TimeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeValueAccessor, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
204
- TimeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TimeValueAccessor, selector: "cat-time", host: { listeners: { "catChange": "handleChangeEvent($event.target.value); updateErrors()", "catBlur": "updateErrors()" } }, providers: [
205
- {
206
- provide: NG_VALUE_ACCESSOR,
207
- useExisting: TimeValueAccessor,
208
- multi: true
209
- }
210
- ], usesInheritance: true, ngImport: i0 });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeValueAccessor, decorators: [{
212
- type: Directive,
213
- args: [{
214
- /* tslint:disable-next-line:directive-selector */
215
- selector: 'cat-time',
216
- host: {
217
- '(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
218
- '(catBlur)': 'updateErrors()'
219
- },
220
- providers: [
221
- {
222
- provide: NG_VALUE_ACCESSOR,
223
- useExisting: TimeValueAccessor,
224
- multi: true
225
- }
226
- ]
227
- }]
228
- }], ctorParameters: function () {
229
- return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
230
- type: Optional
231
- }, {
232
- type: SkipSelf
233
- }] }];
234
- } });
235
-
236
- class DatetimeComponent {
237
- get min() {
238
- var _a;
239
- return (_a = this._min) !== null && _a !== void 0 ? _a : null;
240
- }
241
- set min(value) {
242
- this._min = value;
243
- setTimeout(() => {
244
- var _a;
245
- const min = value ? this.toLocalISODate(value) : undefined;
246
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.nativeElement.setAttribute('min', min);
247
- this.limitTime('min');
248
- });
249
- }
250
- get max() {
251
- var _a;
252
- return (_a = this._max) !== null && _a !== void 0 ? _a : null;
253
- }
254
- set max(value) {
255
- this._max = value;
256
- setTimeout(() => {
257
- var _a;
258
- const max = value ? this.toLocalISODate(value) : undefined;
259
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.nativeElement.setAttribute('max', max);
260
- this.limitTime('max');
261
- });
262
- }
263
- ngAfterContentInit() {
264
- if (!this.dateInput) {
265
- throw new Error('Missing child element <cat-date></cat-date>');
266
- }
267
- if (!this.timeInput) {
268
- throw new Error('Missing child element <cat-time></cat-time>');
269
- }
270
- }
271
- writeValue(value) {
272
- this.lastValue = this.lastDateValue = this.lastTimeValue = value;
273
- setTimeout(() => {
274
- var _a, _b, _c, _d, _e, _f;
275
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.writeValue(value);
276
- const timeAfterChangeDate = (_b = this.value) === null || _b === void 0 ? void 0 : _b.getTime();
277
- this.limitTime('min');
278
- this.limitTime('max');
279
- const isTimeChangedAfterLimit = ((_c = this.value) === null || _c === void 0 ? void 0 : _c.getTime()) !== timeAfterChangeDate;
280
- (_d = this.timeInput) === null || _d === void 0 ? void 0 : _d.writeValue(value);
281
- if (isTimeChangedAfterLimit) {
282
- (_e = this.timeInput) === null || _e === void 0 ? void 0 : _e.handleChangeEvent((_f = this.timeInput) === null || _f === void 0 ? void 0 : _f.nativeElement.value);
283
- }
284
- });
285
- }
286
- registerOnChange(fn) {
287
- setTimeout(() => {
288
- var _a, _b;
289
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.registerOnChange((value) => {
290
- this.lastDateValue = value;
291
- this.limitTime('min');
292
- this.limitTime('max');
293
- fn(this.value);
294
- });
295
- (_b = this.timeInput) === null || _b === void 0 ? void 0 : _b.registerOnChange((value) => {
296
- this.lastTimeValue = value;
297
- fn(this.value);
298
- });
299
- });
300
- }
301
- registerOnTouched(fn) {
302
- setTimeout(() => {
303
- var _a, _b;
304
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.registerOnTouched(fn);
305
- (_b = this.timeInput) === null || _b === void 0 ? void 0 : _b.registerOnTouched(fn);
306
- });
307
- }
308
- setDisabledState(isDisabled) {
309
- setTimeout(() => {
310
- var _a, _b;
311
- (_a = this.dateInput) === null || _a === void 0 ? void 0 : _a.setDisabledState(isDisabled);
312
- (_b = this.timeInput) === null || _b === void 0 ? void 0 : _b.setDisabledState(isDisabled);
313
- });
314
- }
315
- get value() {
316
- if (this.lastDateValue && this.lastTimeValue) {
317
- const result = new Date(this.lastDateValue);
318
- result.setHours(this.lastTimeValue.getHours(), this.lastTimeValue.getMinutes(), this.lastTimeValue.getSeconds(), this.lastTimeValue.getMilliseconds());
319
- return result;
320
- }
321
- return null;
322
- }
323
- limitTime(mode) {
324
- var _a, _b;
325
- const limit = mode === 'min' ? this.min : this.max;
326
- const limitIso = limit ? this.toLocalISODate(limit) : undefined;
327
- const dateIso = this.lastDateValue ? this.toLocalISODate(this.lastDateValue) : undefined;
328
- const attr = limit && limitIso === dateIso ? this.toLocalISOTime(limit) : undefined;
329
- if (attr) {
330
- (_a = this.timeInput) === null || _a === void 0 ? void 0 : _a.nativeElement.setAttribute(mode, attr);
331
- }
332
- else {
333
- (_b = this.timeInput) === null || _b === void 0 ? void 0 : _b.nativeElement.removeAttribute(mode);
334
- }
335
- }
336
- toLocalISODate(value) {
337
- const year = value.getFullYear();
338
- const month = (value.getMonth() + 1).toString().padStart(2, '0');
339
- const day = value.getDate().toString().padStart(2, '0');
340
- return `${year}-${month}-${day}`;
341
- }
342
- toLocalISOTime(value) {
343
- const hours = value.getHours().toString().padStart(2, '0');
344
- const mins = value.getMinutes().toString().padStart(2, '0');
345
- return `${hours}:${mins}`;
346
- }
347
- }
348
- DatetimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatetimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
349
- DatetimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: DatetimeComponent, selector: "cat-datetime", inputs: { min: "min", max: "max" }, providers: [
350
- {
351
- provide: NG_VALUE_ACCESSOR,
352
- useExisting: DatetimeComponent,
353
- multi: true
354
- }
355
- ], queries: [{ propertyName: "dateInput", first: true, predicate: DateValueAccessor, descendants: true }, { propertyName: "timeInput", first: true, predicate: TimeValueAccessor, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["cat-datetime{display:contents}\n"], encapsulation: i0.ViewEncapsulation.None });
356
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DatetimeComponent, decorators: [{
357
- type: Component,
358
- args: [{ selector: 'cat-datetime', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, providers: [
359
- {
360
- provide: NG_VALUE_ACCESSOR,
361
- useExisting: DatetimeComponent,
362
- multi: true
363
- }
364
- ], styles: ["cat-datetime{display:contents}\n"] }]
365
- }], propDecorators: { dateInput: [{
366
- type: ContentChild,
367
- args: [DateValueAccessor]
368
- }], timeInput: [{
369
- type: ContentChild,
370
- args: [TimeValueAccessor]
371
- }], min: [{
372
- type: Input
373
- }], max: [{
374
- type: Input
375
- }] } });
376
-
377
- /**
378
- * The bottom actions of a dialog.
379
- */
380
- class CatDialogActionsComponent {
381
- constructor() {
382
- /**
383
- * Horizontal alignment of action buttons.
384
- */
385
- this.align = 'end';
386
- }
387
- }
388
- CatDialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
389
- CatDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDialogActionsComponent, selector: "cat-dialog-actions", inputs: { align: "align" }, host: { properties: { "class.cat-dialog-actions-center": "align === \"center\"", "class.cat-dialog-actions-end": "align === \"end\"", "class.cat-dialog-actions-space-between": "align === \"space-between\"" }, classAttribute: "cat-dialog-actions" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".cat-dialog-actions-center{justify-content:center}.cat-dialog-actions-end{justify-content:end}.cat-dialog-actions-space-between{justify-content:space-between}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogActionsComponent, decorators: [{
391
- type: Component,
392
- args: [{ selector: 'cat-dialog-actions', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
393
- class: 'cat-dialog-actions',
394
- '[class.cat-dialog-actions-center]': 'align === "center"',
395
- '[class.cat-dialog-actions-end]': 'align === "end"',
396
- '[class.cat-dialog-actions-space-between]': 'align === "space-between"'
397
- }, styles: [".cat-dialog-actions-center{justify-content:center}.cat-dialog-actions-end{justify-content:end}.cat-dialog-actions-space-between{justify-content:space-between}\n"] }]
398
- }], propDecorators: { align: [{
399
- type: Input
400
- }] } });
401
-
402
- /* eslint-disable */
403
- const proxyInputs = (Cmp, inputs) => {
404
- const Prototype = Cmp.prototype;
405
- inputs.forEach((item) => {
406
- Object.defineProperty(Prototype, item, {
407
- get() {
408
- return this.el[item];
409
- },
410
- set(val) {
411
- this.z.runOutsideAngular(() => (this.el[item] = val));
412
- },
413
- /**
414
- * In the event that proxyInputs is called
415
- * multiple times re-defining these inputs
416
- * will cause an error to be thrown. As a result
417
- * we set configurable: true to indicate these
418
- * properties can be changed.
419
- */
420
- configurable: true,
421
- });
422
- });
423
- };
424
- const proxyMethods = (Cmp, methods) => {
425
- const Prototype = Cmp.prototype;
426
- methods.forEach((methodName) => {
427
- Prototype[methodName] = function () {
428
- const args = arguments;
429
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
430
- };
431
- });
432
- };
433
- const proxyOutputs = (instance, el, events) => {
434
- events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
435
- };
436
- const defineCustomElement = (tagName, customElement) => {
437
- if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
438
- customElements.define(tagName, customElement);
439
- }
440
- };
441
- // tslint:disable-next-line: only-arrow-functions
442
- function ProxyCmp(opts) {
443
- const decorator = function (cls) {
444
- const { defineCustomElementFn, inputs, methods } = opts;
445
- if (defineCustomElementFn !== undefined) {
446
- defineCustomElementFn();
447
- }
448
- if (inputs) {
449
- proxyInputs(cls, inputs);
450
- }
451
- if (methods) {
452
- proxyMethods(cls, methods);
453
- }
454
- return cls;
455
- };
456
- return decorator;
457
- }
458
-
459
- let CatAlert = class CatAlert {
460
- constructor(c, r, z) {
461
- this.z = z;
462
- c.detach();
463
- this.el = r.nativeElement;
464
- }
465
- };
466
- CatAlert.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
467
- CatAlert.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 });
468
- CatAlert = __decorate([
469
- ProxyCmp({
470
- inputs: ['color', 'icon', 'noIcon']
471
- })
472
- ], CatAlert);
473
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatAlert, decorators: [{
474
- type: Component,
475
- args: [{
476
- selector: 'cat-alert',
477
- changeDetection: ChangeDetectionStrategy.OnPush,
478
- template: '<ng-content></ng-content>',
479
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
480
- inputs: ['color', 'icon', 'noIcon'],
481
- }]
482
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
483
- let CatAvatar = class CatAvatar {
484
- constructor(c, r, z) {
485
- this.z = z;
486
- c.detach();
487
- this.el = r.nativeElement;
488
- }
489
- };
490
- CatAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
491
- CatAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 });
492
- CatAvatar = __decorate([
493
- ProxyCmp({
494
- inputs: ['icon', 'initials', 'label', 'round', 'size', 'src', 'url', 'urlTarget']
495
- })
496
- ], CatAvatar);
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatAvatar, decorators: [{
498
- type: Component,
499
- args: [{
500
- selector: 'cat-avatar',
501
- changeDetection: ChangeDetectionStrategy.OnPush,
502
- template: '<ng-content></ng-content>',
503
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
504
- inputs: ['icon', 'initials', 'label', 'round', 'size', 'src', 'url', 'urlTarget'],
505
- }]
506
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
507
- let CatBadge = class CatBadge {
508
- constructor(c, r, z) {
509
- this.z = z;
510
- c.detach();
511
- this.el = r.nativeElement;
512
- }
513
- };
514
- CatBadge.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatBadge, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
515
- CatBadge.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatBadge, selector: "cat-badge", inputs: { color: "color", icon: "icon", iconOnly: "iconOnly", iconRight: "iconRight", pulse: "pulse", round: "round", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
516
- CatBadge = __decorate([
517
- ProxyCmp({
518
- inputs: ['color', 'icon', 'iconOnly', 'iconRight', 'pulse', 'round', 'size', 'variant']
519
- })
520
- ], CatBadge);
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatBadge, decorators: [{
522
- type: Component,
523
- args: [{
524
- selector: 'cat-badge',
525
- changeDetection: ChangeDetectionStrategy.OnPush,
526
- template: '<ng-content></ng-content>',
527
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
528
- inputs: ['color', 'icon', 'iconOnly', 'iconRight', 'pulse', 'round', 'size', 'variant'],
529
- }]
530
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
531
- let CatButton = class CatButton {
532
- constructor(c, r, z) {
533
- this.z = z;
534
- c.detach();
535
- this.el = r.nativeElement;
536
- proxyOutputs(this, this.el, ['catClick', 'catFocus', 'catBlur']);
537
- }
538
- };
539
- CatButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
540
- CatButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatButton, selector: "cat-button", inputs: { a11yCurrent: "a11yCurrent", a11yLabel: "a11yLabel", active: "active", buttonGroupPosition: "buttonGroupPosition", buttonId: "buttonId", color: "color", disabled: "disabled", icon: "icon", iconOnly: "iconOnly", iconRight: "iconRight", loading: "loading", name: "name", nativeAttributes: "nativeAttributes", nativeContentAttributes: "nativeContentAttributes", noEllipsis: "noEllipsis", round: "round", size: "size", submit: "submit", testId: "testId", url: "url", urlTarget: "urlTarget", value: "value", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
541
- CatButton = __decorate([
542
- ProxyCmp({
543
- inputs: ['a11yCurrent', 'a11yLabel', 'active', 'buttonGroupPosition', 'buttonId', 'color', 'disabled', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'nativeAttributes', 'nativeContentAttributes', 'noEllipsis', 'round', 'size', 'submit', 'testId', 'url', 'urlTarget', 'value', 'variant'],
544
- methods: ['doFocus', 'doBlur', 'doClick']
545
- })
546
- ], CatButton);
547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatButton, decorators: [{
548
- type: Component,
549
- args: [{
550
- selector: 'cat-button',
551
- changeDetection: ChangeDetectionStrategy.OnPush,
552
- template: '<ng-content></ng-content>',
553
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
554
- inputs: ['a11yCurrent', 'a11yLabel', 'active', 'buttonGroupPosition', 'buttonId', 'color', 'disabled', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'nativeAttributes', 'nativeContentAttributes', 'noEllipsis', 'round', 'size', 'submit', 'testId', 'url', 'urlTarget', 'value', 'variant'],
555
- }]
556
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
557
- let CatButtonGroup = class CatButtonGroup {
558
- constructor(c, r, z) {
559
- this.z = z;
560
- c.detach();
561
- this.el = r.nativeElement;
562
- }
563
- };
564
- CatButtonGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatButtonGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
565
- CatButtonGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatButtonGroup, selector: "cat-button-group", inputs: { a11yLabel: "a11yLabel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
566
- CatButtonGroup = __decorate([
567
- ProxyCmp({
568
- inputs: ['a11yLabel']
569
- })
570
- ], CatButtonGroup);
571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatButtonGroup, decorators: [{
572
- type: Component,
573
- args: [{
574
- selector: 'cat-button-group',
575
- changeDetection: ChangeDetectionStrategy.OnPush,
576
- template: '<ng-content></ng-content>',
577
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
578
- inputs: ['a11yLabel'],
579
- }]
580
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
581
- let CatCard = class CatCard {
582
- constructor(c, r, z) {
583
- this.z = z;
584
- c.detach();
585
- this.el = r.nativeElement;
586
- proxyOutputs(this, this.el, ['catLoad']);
587
- }
588
- };
589
- CatCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatCard, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
590
- CatCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatCard, selector: "cat-card", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
591
- CatCard = __decorate([
592
- ProxyCmp({})
593
- ], CatCard);
594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatCard, decorators: [{
595
- type: Component,
596
- args: [{
597
- selector: 'cat-card',
598
- changeDetection: ChangeDetectionStrategy.OnPush,
599
- template: '<ng-content></ng-content>',
600
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
601
- inputs: [],
602
- }]
603
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
604
- let CatCheckbox = class CatCheckbox {
605
- constructor(c, r, z) {
606
- this.z = z;
607
- c.detach();
608
- this.el = r.nativeElement;
609
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
610
- }
611
- };
612
- CatCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatCheckbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
613
- CatCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatCheckbox, selector: "cat-checkbox", inputs: { alignment: "alignment", checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", indeterminate: "indeterminate", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", noValue: "noValue", required: "required", requiredMarker: "requiredMarker", resolvedValue: "resolvedValue", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
614
- CatCheckbox = __decorate([
615
- ProxyCmp({
616
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'requiredMarker', 'resolvedValue', 'testId', 'value'],
617
- methods: ['doFocus', 'doBlur']
618
- })
619
- ], CatCheckbox);
620
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatCheckbox, decorators: [{
621
- type: Component,
622
- args: [{
623
- selector: 'cat-checkbox',
624
- changeDetection: ChangeDetectionStrategy.OnPush,
625
- template: '<ng-content></ng-content>',
626
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
627
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'requiredMarker', 'resolvedValue', 'testId', 'value'],
628
- }]
629
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
630
- let CatDate = class CatDate {
631
- constructor(c, r, z) {
632
- this.z = z;
633
- c.detach();
634
- this.el = r.nativeElement;
635
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
636
- }
637
- };
638
- CatDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDate, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
639
- CatDate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDate, selector: "cat-date", inputs: { autoComplete: "autoComplete", clearable: "clearable", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", icon: "icon", iconRight: "iconRight", identifier: "identifier", label: "label", labelHidden: "labelHidden", max: "max", min: "min", name: "name", nativeAttributes: "nativeAttributes", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", requiredMarker: "requiredMarker", testId: "testId", textPrefix: "textPrefix", textSuffix: "textSuffix", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
640
- CatDate = __decorate([
641
- ProxyCmp({
642
- inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'testId', 'textPrefix', 'textSuffix', 'value'],
643
- methods: ['doFocus', 'doBlur', 'clear']
644
- })
645
- ], CatDate);
646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDate, decorators: [{
647
- type: Component,
648
- args: [{
649
- selector: 'cat-date',
650
- changeDetection: ChangeDetectionStrategy.OnPush,
651
- template: '<ng-content></ng-content>',
652
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
653
- inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'testId', 'textPrefix', 'textSuffix', 'value'],
654
- }]
655
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
656
- let CatDateInline = class CatDateInline {
657
- constructor(c, r, z) {
658
- this.z = z;
659
- c.detach();
660
- this.el = r.nativeElement;
661
- proxyOutputs(this, this.el, ['catChange']);
662
- }
663
- };
664
- CatDateInline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDateInline, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
665
- CatDateInline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDateInline, selector: "cat-date-inline", inputs: { a11yLabel: "a11yLabel", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", max: "max", min: "min", noClear: "noClear", noToday: "noToday", range: "range", required: "required", requiredMarker: "requiredMarker", value: "value", weeks: "weeks" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
666
- CatDateInline = __decorate([
667
- ProxyCmp({
668
- inputs: ['a11yLabel', 'hint', 'identifier', 'label', 'labelHidden', 'max', 'min', 'noClear', 'noToday', 'range', 'required', 'requiredMarker', 'value', 'weeks'],
669
- methods: ['select', 'clear', 'resetView', 'doFocus']
670
- })
671
- ], CatDateInline);
672
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDateInline, decorators: [{
673
- type: Component,
674
- args: [{
675
- selector: 'cat-date-inline',
676
- changeDetection: ChangeDetectionStrategy.OnPush,
677
- template: '<ng-content></ng-content>',
678
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
679
- inputs: ['a11yLabel', 'hint', 'identifier', 'label', 'labelHidden', 'max', 'min', 'noClear', 'noToday', 'range', 'required', 'requiredMarker', 'value', 'weeks'],
680
- }]
681
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
682
- let CatDatepicker = class CatDatepicker {
683
- constructor(c, r, z) {
684
- this.z = z;
685
- c.detach();
686
- this.el = r.nativeElement;
687
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
688
- }
689
- };
690
- CatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDatepicker, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
691
- CatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDatepicker, selector: "cat-datepicker", inputs: { attachToElement: "attachToElement", autoComplete: "autoComplete", clearable: "clearable", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", icon: "icon", iconRight: "iconRight", identifier: "identifier", label: "label", labelHidden: "labelHidden", max: "max", min: "min", mode: "mode", name: "name", nativeAttributes: "nativeAttributes", nativePickerAttributes: "nativePickerAttributes", placeholder: "placeholder", position: "position", readonly: "readonly", required: "required", requiredMarker: "requiredMarker", step: "step", textPrefix: "textPrefix", textSuffix: "textSuffix", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
692
- CatDatepicker = __decorate([
693
- ProxyCmp({
694
- inputs: ['attachToElement', 'autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'mode', 'name', 'nativeAttributes', 'nativePickerAttributes', 'placeholder', 'position', 'readonly', 'required', 'requiredMarker', 'step', 'textPrefix', 'textSuffix', 'value'],
695
- methods: ['doFocus', 'doBlur']
696
- })
697
- ], CatDatepicker);
698
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDatepicker, decorators: [{
699
- type: Component,
700
- args: [{
701
- selector: 'cat-datepicker',
702
- changeDetection: ChangeDetectionStrategy.OnPush,
703
- template: '<ng-content></ng-content>',
704
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
705
- inputs: ['attachToElement', 'autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'mode', 'name', 'nativeAttributes', 'nativePickerAttributes', 'placeholder', 'position', 'readonly', 'required', 'requiredMarker', 'step', 'textPrefix', 'textSuffix', 'value'],
706
- }]
707
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
708
- let CatDatepickerInline = class CatDatepickerInline {
709
- constructor(c, r, z) {
710
- this.z = z;
711
- c.detach();
712
- this.el = r.nativeElement;
713
- proxyOutputs(this, this.el, ['catChange']);
714
- }
715
- };
716
- CatDatepickerInline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDatepickerInline, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
717
- CatDatepickerInline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDatepickerInline, selector: "cat-datepicker-inline", inputs: { disabled: "disabled", max: "max", min: "min", mode: "mode", nativePickerAttributes: "nativePickerAttributes", readonly: "readonly", step: "step", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
718
- CatDatepickerInline = __decorate([
719
- ProxyCmp({
720
- inputs: ['disabled', 'max', 'min', 'mode', 'nativePickerAttributes', 'readonly', 'step', 'value']
721
- })
722
- ], CatDatepickerInline);
723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDatepickerInline, decorators: [{
724
- type: Component,
725
- args: [{
726
- selector: 'cat-datepicker-inline',
727
- changeDetection: ChangeDetectionStrategy.OnPush,
728
- template: '<ng-content></ng-content>',
729
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
730
- inputs: ['disabled', 'max', 'min', 'mode', 'nativePickerAttributes', 'readonly', 'step', 'value'],
731
- }]
732
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
733
- let CatDropdown = class CatDropdown {
734
- constructor(c, r, z) {
735
- this.z = z;
736
- c.detach();
737
- this.el = r.nativeElement;
738
- proxyOutputs(this, this.el, ['catOpen', 'catClose']);
739
- }
740
- };
741
- CatDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
742
- CatDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDropdown, selector: "cat-dropdown", inputs: { arrowNavigation: "arrowNavigation", delayedTriggerInit: "delayedTriggerInit", isOpen: "isOpen", justify: "justify", noAutoClose: "noAutoClose", noInitialFocus: "noInitialFocus", noResize: "noResize", noReturnFocus: "noReturnFocus", overflow: "overflow", placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
743
- CatDropdown = __decorate([
744
- ProxyCmp({
745
- inputs: ['arrowNavigation', 'delayedTriggerInit', 'isOpen', 'justify', 'noAutoClose', 'noInitialFocus', 'noResize', 'noReturnFocus', 'overflow', 'placement'],
746
- methods: ['toggle', 'open', 'close']
747
- })
748
- ], CatDropdown);
749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDropdown, decorators: [{
750
- type: Component,
751
- args: [{
752
- selector: 'cat-dropdown',
753
- changeDetection: ChangeDetectionStrategy.OnPush,
754
- template: '<ng-content></ng-content>',
755
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
756
- inputs: ['arrowNavigation', 'delayedTriggerInit', 'isOpen', 'justify', 'noAutoClose', 'noInitialFocus', 'noResize', 'noReturnFocus', 'overflow', 'placement'],
757
- }]
758
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
759
- let CatFormGroup = class CatFormGroup {
760
- constructor(c, r, z) {
761
- this.z = z;
762
- c.detach();
763
- this.el = r.nativeElement;
764
- }
765
- };
766
- CatFormGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatFormGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
767
- CatFormGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatFormGroup, selector: "cat-form-group", inputs: { horizontal: "horizontal", labelSize: "labelSize", requiredMarker: "requiredMarker" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
768
- CatFormGroup = __decorate([
769
- ProxyCmp({
770
- inputs: ['horizontal', 'labelSize', 'requiredMarker']
771
- })
772
- ], CatFormGroup);
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatFormGroup, decorators: [{
774
- type: Component,
775
- args: [{
776
- selector: 'cat-form-group',
777
- changeDetection: ChangeDetectionStrategy.OnPush,
778
- template: '<ng-content></ng-content>',
779
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
780
- inputs: ['horizontal', 'labelSize', 'requiredMarker'],
781
- }]
782
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
783
- let CatIcon = class CatIcon {
784
- constructor(c, r, z) {
785
- this.z = z;
786
- c.detach();
787
- this.el = r.nativeElement;
788
- }
789
- };
790
- CatIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
791
- CatIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatIcon, selector: "cat-icon", inputs: { a11yLabel: "a11yLabel", icon: "icon", iconSrc: "iconSrc", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
792
- CatIcon = __decorate([
793
- ProxyCmp({
794
- inputs: ['a11yLabel', 'icon', 'iconSrc', 'size']
795
- })
796
- ], CatIcon);
797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatIcon, decorators: [{
798
- type: Component,
799
- args: [{
800
- selector: 'cat-icon',
801
- changeDetection: ChangeDetectionStrategy.OnPush,
802
- template: '<ng-content></ng-content>',
803
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
804
- inputs: ['a11yLabel', 'icon', 'iconSrc', 'size'],
805
- }]
806
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
807
- let CatInput = class CatInput {
808
- constructor(c, r, z) {
809
- this.z = z;
810
- c.detach();
811
- this.el = r.nativeElement;
812
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur', 'catChangeFiles']);
813
- }
814
- };
815
- CatInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
816
- CatInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatInput, selector: "cat-input", inputs: { accept: "accept", autoComplete: "autoComplete", clearable: "clearable", dateMaskOptions: "dateMaskOptions", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", icon: "icon", iconRight: "iconRight", identifier: "identifier", label: "label", labelHidden: "labelHidden", loading: "loading", max: "max", maxLength: "maxLength", min: "min", minLength: "minLength", multiple: "multiple", name: "name", nativeAttributes: "nativeAttributes", placeholder: "placeholder", readonly: "readonly", required: "required", requiredMarker: "requiredMarker", round: "round", testId: "testId", textPrefix: "textPrefix", textSuffix: "textSuffix", timeMaskOptions: "timeMaskOptions", togglePassword: "togglePassword", type: "type", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
817
- CatInput = __decorate([
818
- ProxyCmp({
819
- inputs: ['accept', 'autoComplete', 'clearable', 'dateMaskOptions', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'loading', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'name', 'nativeAttributes', 'placeholder', 'readonly', 'required', 'requiredMarker', 'round', 'testId', 'textPrefix', 'textSuffix', 'timeMaskOptions', 'togglePassword', 'type', 'value'],
820
- methods: ['doFocus', 'doBlur', 'clear']
821
- })
822
- ], CatInput);
823
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatInput, decorators: [{
824
- type: Component,
825
- args: [{
826
- selector: 'cat-input',
827
- changeDetection: ChangeDetectionStrategy.OnPush,
828
- template: '<ng-content></ng-content>',
829
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
830
- inputs: ['accept', 'autoComplete', 'clearable', 'dateMaskOptions', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'loading', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'name', 'nativeAttributes', 'placeholder', 'readonly', 'required', 'requiredMarker', 'round', 'testId', 'textPrefix', 'textSuffix', 'timeMaskOptions', 'togglePassword', 'type', 'value'],
831
- }]
832
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
833
- let CatPagination = class CatPagination {
834
- constructor(c, r, z) {
835
- this.z = z;
836
- c.detach();
837
- this.el = r.nativeElement;
838
- proxyOutputs(this, this.el, ['catChange']);
839
- }
840
- };
841
- CatPagination.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatPagination, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
842
- CatPagination.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatPagination, selector: "cat-pagination", inputs: { activePadding: "activePadding", compact: "compact", iconNext: "iconNext", iconPrev: "iconPrev", page: "page", pageCount: "pageCount", round: "round", sidePadding: "sidePadding", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
843
- CatPagination = __decorate([
844
- ProxyCmp({
845
- inputs: ['activePadding', 'compact', 'iconNext', 'iconPrev', 'page', 'pageCount', 'round', 'sidePadding', 'size', 'variant']
846
- })
847
- ], CatPagination);
848
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatPagination, decorators: [{
849
- type: Component,
850
- args: [{
851
- selector: 'cat-pagination',
852
- changeDetection: ChangeDetectionStrategy.OnPush,
853
- template: '<ng-content></ng-content>',
854
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
855
- inputs: ['activePadding', 'compact', 'iconNext', 'iconPrev', 'page', 'pageCount', 'round', 'sidePadding', 'size', 'variant'],
856
- }]
857
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
858
- let CatRadio = class CatRadio {
859
- constructor(c, r, z) {
860
- this.z = z;
861
- c.detach();
862
- this.el = r.nativeElement;
863
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
864
- }
865
- };
866
- CatRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatRadio, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
867
- CatRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatRadio, selector: "cat-radio", inputs: { alignment: "alignment", checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", required: "required", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
868
- CatRadio = __decorate([
869
- ProxyCmp({
870
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'testId', 'value'],
871
- methods: ['doFocus', 'doBlur']
872
- })
873
- ], CatRadio);
874
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatRadio, decorators: [{
875
- type: Component,
876
- args: [{
877
- selector: 'cat-radio',
878
- changeDetection: ChangeDetectionStrategy.OnPush,
879
- template: '<ng-content></ng-content>',
880
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
881
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'testId', 'value'],
882
- }]
883
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
884
- let CatRadioGroup = class CatRadioGroup {
885
- constructor(c, r, z) {
886
- this.z = z;
887
- c.detach();
888
- this.el = r.nativeElement;
889
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
890
- }
891
- };
892
- CatRadioGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatRadioGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
893
- CatRadioGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 });
894
- CatRadioGroup = __decorate([
895
- ProxyCmp({
896
- inputs: ['a11yLabel', 'disabled', 'labelLeft', 'name', 'value']
897
- })
898
- ], CatRadioGroup);
899
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatRadioGroup, decorators: [{
900
- type: Component,
901
- args: [{
902
- selector: 'cat-radio-group',
903
- changeDetection: ChangeDetectionStrategy.OnPush,
904
- template: '<ng-content></ng-content>',
905
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
906
- inputs: ['a11yLabel', 'disabled', 'labelLeft', 'name', 'value'],
907
- }]
908
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
909
- let CatScrollable = class CatScrollable {
910
- constructor(c, r, z) {
911
- this.z = z;
912
- c.detach();
913
- this.el = r.nativeElement;
914
- proxyOutputs(this, this.el, ['scrolledTop', 'scrolledLeft', 'scrolledRight', 'scrolledBottom']);
915
- }
916
- };
917
- CatScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatScrollable, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
918
- CatScrollable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 });
919
- CatScrollable = __decorate([
920
- ProxyCmp({
921
- inputs: ['noOverflowX', 'noOverflowY', 'noOverscroll', 'noScrolledInit', 'noShadowX', 'noShadowY', 'scrolledBuffer']
922
- })
923
- ], CatScrollable);
924
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatScrollable, decorators: [{
925
- type: Component,
926
- args: [{
927
- selector: 'cat-scrollable',
928
- changeDetection: ChangeDetectionStrategy.OnPush,
929
- template: '<ng-content></ng-content>',
930
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
931
- inputs: ['noOverflowX', 'noOverflowY', 'noOverscroll', 'noScrolledInit', 'noShadowX', 'noShadowY', 'scrolledBuffer'],
932
- }]
933
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
934
- let CatSelect = class CatSelect {
935
- constructor(c, r, z) {
936
- this.z = z;
937
- c.detach();
938
- this.el = r.nativeElement;
939
- proxyOutputs(this, this.el, ['catOpen', 'catClose', 'catChange', 'catBlur']);
940
- }
941
- };
942
- CatSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
943
- CatSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatSelect, selector: "cat-select", inputs: { clearable: "clearable", debounce: "debounce", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", identifier: "identifier", label: "label", labelHidden: "labelHidden", multiple: "multiple", name: "name", nativeAttributes: "nativeAttributes", noItems: "noItems", placeholder: "placeholder", placement: "placement", required: "required", requiredMarker: "requiredMarker", tagHint: "tagHint", tags: "tags", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
944
- CatSelect = __decorate([
945
- ProxyCmp({
946
- inputs: ['clearable', 'debounce', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'identifier', 'label', 'labelHidden', 'multiple', 'name', 'nativeAttributes', 'noItems', 'placeholder', 'placement', 'required', 'requiredMarker', 'tagHint', 'tags', 'testId', 'value'],
947
- methods: ['doFocus', 'doBlur', 'clear', 'connect']
948
- })
949
- ], CatSelect);
950
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSelect, decorators: [{
951
- type: Component,
952
- args: [{
953
- selector: 'cat-select',
954
- changeDetection: ChangeDetectionStrategy.OnPush,
955
- template: '<ng-content></ng-content>',
956
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
957
- inputs: ['clearable', 'debounce', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'identifier', 'label', 'labelHidden', 'multiple', 'name', 'nativeAttributes', 'noItems', 'placeholder', 'placement', 'required', 'requiredMarker', 'tagHint', 'tags', 'testId', 'value'],
958
- }]
959
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
960
- let CatSelectDemo = class CatSelectDemo {
961
- constructor(c, r, z) {
962
- this.z = z;
963
- c.detach();
964
- this.el = r.nativeElement;
965
- }
966
- };
967
- CatSelectDemo.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSelectDemo, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
968
- CatSelectDemo.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatSelectDemo, selector: "cat-select-demo", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
969
- CatSelectDemo = __decorate([
970
- ProxyCmp({})
971
- ], CatSelectDemo);
972
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSelectDemo, decorators: [{
973
- type: Component,
974
- args: [{
975
- selector: 'cat-select-demo',
976
- changeDetection: ChangeDetectionStrategy.OnPush,
977
- template: '<ng-content></ng-content>',
978
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
979
- inputs: [],
980
- }]
981
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
982
- let CatSkeleton = class CatSkeleton {
983
- constructor(c, r, z) {
984
- this.z = z;
985
- c.detach();
986
- this.el = r.nativeElement;
987
- }
988
- };
989
- CatSkeleton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSkeleton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
990
- CatSkeleton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", 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 });
991
- CatSkeleton = __decorate([
992
- ProxyCmp({
993
- inputs: ['effect', 'lines', 'size', 'variant']
994
- })
995
- ], CatSkeleton);
996
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSkeleton, decorators: [{
997
- type: Component,
998
- args: [{
999
- selector: 'cat-skeleton',
1000
- changeDetection: ChangeDetectionStrategy.OnPush,
1001
- template: '<ng-content></ng-content>',
1002
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1003
- inputs: ['effect', 'lines', 'size', 'variant'],
1004
- }]
1005
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1006
- let CatSpinner = class CatSpinner {
1007
- constructor(c, r, z) {
1008
- this.z = z;
1009
- c.detach();
1010
- this.el = r.nativeElement;
1011
- }
1012
- };
1013
- CatSpinner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSpinner, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1014
- CatSpinner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatSpinner, selector: "cat-spinner", inputs: { a11yLabel: "a11yLabel", size: "size", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1015
- CatSpinner = __decorate([
1016
- ProxyCmp({
1017
- inputs: ['a11yLabel', 'size', 'value']
1018
- })
1019
- ], CatSpinner);
1020
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSpinner, decorators: [{
1021
- type: Component,
1022
- args: [{
1023
- selector: 'cat-spinner',
1024
- changeDetection: ChangeDetectionStrategy.OnPush,
1025
- template: '<ng-content></ng-content>',
1026
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1027
- inputs: ['a11yLabel', 'size', 'value'],
1028
- }]
1029
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1030
- let CatTab = class CatTab {
1031
- constructor(c, r, z) {
1032
- this.z = z;
1033
- c.detach();
1034
- this.el = r.nativeElement;
1035
- proxyOutputs(this, this.el, ['catClick']);
1036
- }
1037
- };
1038
- CatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTab, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1039
- CatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTab, selector: "cat-tab", inputs: { deactivated: "deactivated", error: "error", icon: "icon", iconOnly: "iconOnly", iconRight: "iconRight", label: "label", nativeAttributes: "nativeAttributes", noActive: "noActive", sticky: "sticky", testId: "testId", url: "url", urlTarget: "urlTarget" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1040
- CatTab = __decorate([
1041
- ProxyCmp({
1042
- inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'sticky', 'testId', 'url', 'urlTarget']
1043
- })
1044
- ], CatTab);
1045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTab, decorators: [{
1046
- type: Component,
1047
- args: [{
1048
- selector: 'cat-tab',
1049
- changeDetection: ChangeDetectionStrategy.OnPush,
1050
- template: '<ng-content></ng-content>',
1051
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1052
- inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'sticky', 'testId', 'url', 'urlTarget'],
1053
- }]
1054
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1055
- let CatTabs = class CatTabs {
1056
- constructor(c, r, z) {
1057
- this.z = z;
1058
- c.detach();
1059
- this.el = r.nativeElement;
1060
- proxyOutputs(this, this.el, ['catChange']);
1061
- }
1062
- };
1063
- CatTabs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTabs, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1064
- CatTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTabs, selector: "cat-tabs", inputs: { activeTab: "activeTab", activeTabAlwaysVisible: "activeTabAlwaysVisible", adaptive: "adaptive", tabsAlign: "tabsAlign" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1065
- CatTabs = __decorate([
1066
- ProxyCmp({
1067
- inputs: ['activeTab', 'activeTabAlwaysVisible', 'adaptive', 'tabsAlign'],
1068
- methods: ['setActive', 'setActiveIndex', 'updateAdaptiveTabs']
1069
- })
1070
- ], CatTabs);
1071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTabs, decorators: [{
1072
- type: Component,
1073
- args: [{
1074
- selector: 'cat-tabs',
1075
- changeDetection: ChangeDetectionStrategy.OnPush,
1076
- template: '<ng-content></ng-content>',
1077
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1078
- inputs: ['activeTab', 'activeTabAlwaysVisible', 'adaptive', 'tabsAlign'],
1079
- }]
1080
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1081
- let CatTag = class CatTag {
1082
- constructor(c, r, z) {
1083
- this.z = z;
1084
- c.detach();
1085
- this.el = r.nativeElement;
1086
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
1087
- }
1088
- };
1089
- CatTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTag, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1090
- CatTag.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTag, selector: "cat-tag", inputs: { addOnBlur: "addOnBlur", clearable: "clearable", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", name: "name", nativeAttributes: "nativeAttributes", placeholder: "placeholder", required: "required", requiredMarker: "requiredMarker", tagCreationChars: "tagCreationChars", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1091
- CatTag = __decorate([
1092
- ProxyCmp({
1093
- inputs: ['addOnBlur', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'identifier', 'label', 'labelHidden', 'name', 'nativeAttributes', 'placeholder', 'required', 'requiredMarker', 'tagCreationChars', 'testId', 'value']
1094
- })
1095
- ], CatTag);
1096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTag, decorators: [{
1097
- type: Component,
1098
- args: [{
1099
- selector: 'cat-tag',
1100
- changeDetection: ChangeDetectionStrategy.OnPush,
1101
- template: '<ng-content></ng-content>',
1102
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1103
- inputs: ['addOnBlur', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'identifier', 'label', 'labelHidden', 'name', 'nativeAttributes', 'placeholder', 'required', 'requiredMarker', 'tagCreationChars', 'testId', 'value'],
1104
- }]
1105
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1106
- let CatTextarea = class CatTextarea {
1107
- constructor(c, r, z) {
1108
- this.z = z;
1109
- c.detach();
1110
- this.el = r.nativeElement;
1111
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
1112
- }
1113
- };
1114
- CatTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTextarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1115
- CatTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTextarea, selector: "cat-textarea", inputs: { autoComplete: "autoComplete", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", identifier: "identifier", label: "label", labelHidden: "labelHidden", maxLength: "maxLength", minLength: "minLength", name: "name", nativeAttributes: "nativeAttributes", placeholder: "placeholder", readonly: "readonly", required: "required", requiredMarker: "requiredMarker", rows: "rows", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1116
- CatTextarea = __decorate([
1117
- ProxyCmp({
1118
- inputs: ['autoComplete', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'identifier', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'nativeAttributes', 'placeholder', 'readonly', 'required', 'requiredMarker', 'rows', 'testId', 'value'],
1119
- methods: ['doFocus', 'doBlur', 'clear']
1120
- })
1121
- ], CatTextarea);
1122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTextarea, decorators: [{
1123
- type: Component,
1124
- args: [{
1125
- selector: 'cat-textarea',
1126
- changeDetection: ChangeDetectionStrategy.OnPush,
1127
- template: '<ng-content></ng-content>',
1128
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1129
- inputs: ['autoComplete', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'identifier', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'nativeAttributes', 'placeholder', 'readonly', 'required', 'requiredMarker', 'rows', 'testId', 'value'],
1130
- }]
1131
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1132
- let CatTime = class CatTime {
1133
- constructor(c, r, z) {
1134
- this.z = z;
1135
- c.detach();
1136
- this.el = r.nativeElement;
1137
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
1138
- }
1139
- };
1140
- CatTime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTime, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1141
- CatTime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTime, selector: "cat-time", inputs: { autoComplete: "autoComplete", clearable: "clearable", disabled: "disabled", errorUpdate: "errorUpdate", errors: "errors", hint: "hint", horizontal: "horizontal", icon: "icon", iconRight: "iconRight", identifier: "identifier", label: "label", labelHidden: "labelHidden", max: "max", min: "min", name: "name", nativeAttributes: "nativeAttributes", placeholder: "placeholder", placement: "placement", readonly: "readonly", required: "required", requiredMarker: "requiredMarker", step: "step", testId: "testId", textPrefix: "textPrefix", textSuffix: "textSuffix", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1142
- CatTime = __decorate([
1143
- ProxyCmp({
1144
- inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'step', 'testId', 'textPrefix', 'textSuffix', 'value'],
1145
- methods: ['select', 'doFocus', 'doBlur', 'clear']
1146
- })
1147
- ], CatTime);
1148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTime, decorators: [{
1149
- type: Component,
1150
- args: [{
1151
- selector: 'cat-time',
1152
- changeDetection: ChangeDetectionStrategy.OnPush,
1153
- template: '<ng-content></ng-content>',
1154
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1155
- inputs: ['autoComplete', 'clearable', 'disabled', 'errorUpdate', 'errors', 'hint', 'horizontal', 'icon', 'iconRight', 'identifier', 'label', 'labelHidden', 'max', 'min', 'name', 'nativeAttributes', 'placeholder', 'placement', 'readonly', 'required', 'requiredMarker', 'step', 'testId', 'textPrefix', 'textSuffix', 'value'],
1156
- }]
1157
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1158
- let CatToggle = class CatToggle {
1159
- constructor(c, r, z) {
1160
- this.z = z;
1161
- c.detach();
1162
- this.el = r.nativeElement;
1163
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
1164
- }
1165
- };
1166
- CatToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1167
- CatToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatToggle, selector: "cat-toggle", inputs: { alignment: "alignment", checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", noValue: "noValue", required: "required", resolvedValue: "resolvedValue", testId: "testId", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1168
- CatToggle = __decorate([
1169
- ProxyCmp({
1170
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'testId', 'value'],
1171
- methods: ['doFocus', 'doBlur']
1172
- })
1173
- ], CatToggle);
1174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatToggle, decorators: [{
1175
- type: Component,
1176
- args: [{
1177
- selector: 'cat-toggle',
1178
- changeDetection: ChangeDetectionStrategy.OnPush,
1179
- template: '<ng-content></ng-content>',
1180
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1181
- inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'testId', 'value'],
1182
- }]
1183
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1184
- let CatTooltip = class CatTooltip {
1185
- constructor(c, r, z) {
1186
- this.z = z;
1187
- c.detach();
1188
- this.el = r.nativeElement;
1189
- }
1190
- };
1191
- CatTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1192
- CatTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatTooltip, selector: "cat-tooltip", inputs: { content: "content", disabled: "disabled", hideDelay: "hideDelay", longTouchDuration: "longTouchDuration", placement: "placement", round: "round", showDelay: "showDelay", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1193
- CatTooltip = __decorate([
1194
- ProxyCmp({
1195
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'round', 'showDelay', 'size']
1196
- })
1197
- ], CatTooltip);
1198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltip, decorators: [{
1199
- type: Component,
1200
- args: [{
1201
- selector: 'cat-tooltip',
1202
- changeDetection: ChangeDetectionStrategy.OnPush,
1203
- template: '<ng-content></ng-content>',
1204
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1205
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'round', 'showDelay', 'size'],
1206
- }]
1207
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1208
-
1209
- /**
1210
- * The header of a dialog.
1211
- */
1212
- class CatDialogHeaderComponent {
1213
- constructor(i18n) {
1214
- this.i18n = i18n;
1215
- this.closeTxt = this.i18n.t('dialog.close');
1216
- /**
1217
- * Whether the dialog can be closed via a close button.
1218
- */
1219
- this.closable = true;
1220
- /**
1221
- * Emits when the close button is clicked.
1222
- */
1223
- this.close = new EventEmitter();
1224
- }
1225
- }
1226
- CatDialogHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogHeaderComponent, deps: [{ token: CAT_I18N_REGISTRY_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
1227
- CatDialogHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDialogHeaderComponent, selector: "cat-dialog-header", inputs: { headline: "headline", subline: "subline", closable: "closable" }, outputs: { close: "close" }, host: { classAttribute: "cat-dialog-header" }, ngImport: i0, template: "<div class=\"cat-dialog-header-content\" *ngIf=\"headline || subline\">\n <h3 class=\"cat-h5 cat-m-0\" *ngIf=\"headline\">{{ headline }}</h3>\n <h4 class=\"cat-text-m cat-m-0\" *ngIf=\"subline\">{{ subline }}</h4>\n</div>\n<ng-content></ng-content>\n<cat-button\n *ngIf=\"closable\"\n class=\"cat-dialog-close cat-button-pull\"\n variant=\"text\"\n size=\"s\"\n icon=\"$cat:dialog-close\"\n [iconOnly]=\"true\"\n [a11yLabel]=\"closeTxt\"\n (click)=\"close.emit()\"\n></cat-button>\n", styles: [".cat-dialog-close{margin-left:auto;align-self:start}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CatButton, selector: "cat-button", inputs: ["a11yCurrent", "a11yLabel", "active", "buttonGroupPosition", "buttonId", "color", "disabled", "icon", "iconOnly", "iconRight", "loading", "name", "nativeAttributes", "nativeContentAttributes", "noEllipsis", "round", "size", "submit", "testId", "url", "urlTarget", "value", "variant"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogHeaderComponent, decorators: [{
1229
- type: Component,
1230
- args: [{ selector: 'cat-dialog-header', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
1231
- class: 'cat-dialog-header'
1232
- }, template: "<div class=\"cat-dialog-header-content\" *ngIf=\"headline || subline\">\n <h3 class=\"cat-h5 cat-m-0\" *ngIf=\"headline\">{{ headline }}</h3>\n <h4 class=\"cat-text-m cat-m-0\" *ngIf=\"subline\">{{ subline }}</h4>\n</div>\n<ng-content></ng-content>\n<cat-button\n *ngIf=\"closable\"\n class=\"cat-dialog-close cat-button-pull\"\n variant=\"text\"\n size=\"s\"\n icon=\"$cat:dialog-close\"\n [iconOnly]=\"true\"\n [a11yLabel]=\"closeTxt\"\n (click)=\"close.emit()\"\n></cat-button>\n", styles: [".cat-dialog-close{margin-left:auto;align-self:start}\n"] }]
1233
- }], ctorParameters: function () {
1234
- return [{ type: i3.CatI18nRegistry, decorators: [{
1235
- type: Inject,
1236
- args: [CAT_I18N_REGISTRY_TOKEN]
1237
- }] }];
1238
- }, propDecorators: { headline: [{
1239
- type: Input
1240
- }], subline: [{
1241
- type: Input
1242
- }], closable: [{
1243
- type: Input
1244
- }], close: [{
1245
- type: Output
1246
- }] } });
1247
-
1248
- /**
1249
- * A modal dialog.
1250
- */
1251
- class CatDialogComponent {
1252
- constructor(dialogRef) {
1253
- this.dialogRef = dialogRef;
1254
- /**
1255
- * Flag to disable scrolling behavior of dialog content. Default is false. If set to true the
1256
- * using component is responsible for not overflowing the viewport.
1257
- */
1258
- this.noScroll = false;
1259
- /**
1260
- * Flag to disable/enable overscroll behavior.
1261
- */
1262
- this.noOverscroll = false;
1263
- /**
1264
- * Flag to not fire an initial scroll event after content initialization.
1265
- */
1266
- this.noScrolledInit = false;
1267
- /**
1268
- * Buffer to be used to calculate the content scroll distance.
1269
- */
1270
- this.scrolledBuffer = 0;
1271
- /**
1272
- * Emitted when the dialog content is fully scrolled to the bottom.
1273
- */
1274
- this.scrolledBottom = new EventEmitter();
1275
- }
1276
- ngAfterContentInit() {
1277
- var _a;
1278
- (_a = this.header) === null || _a === void 0 ? void 0 : _a.close.subscribe(() => this.dialogRef.close());
1279
- }
1280
- }
1281
- CatDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
1282
- CatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatDialogComponent, selector: "cat-dialog", inputs: { noScroll: "noScroll", noOverscroll: "noOverscroll", noScrolledInit: "noScrolledInit", scrolledBuffer: "scrolledBuffer" }, outputs: { scrolledBottom: "scrolledBottom" }, host: { classAttribute: "cat-dialog" }, queries: [{ propertyName: "header", first: true, predicate: CatDialogHeaderComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"cat-dialog-header\"></ng-content>\n<cat-scrollable\n *ngIf=\"!noScroll; else noScrollTemplate\"\n [noOverscroll]=\"noOverscroll\"\n [noScrolledInit]=\"noScrolledInit\"\n [scrolledBuffer]=\"scrolledBuffer\"\n (scrolledBottom)=\"scrolledBottom.emit()\"\n>\n <div class=\"cat-dialog-content\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n</cat-scrollable>\n<ng-template #noScrollTemplate>\n <div class=\"cat-dialog-content no-scroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n</ng-template>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n<ng-content select=\"cat-dialog-actions\"></ng-content>\n", styles: [".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cat-backdrop{transition-duration:.5s}.cat-dialog-pane{transform:translateZ(0)}.cat-dialog-pane .cdk-dialog-container>*:only-child{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}.cat-dialog{width:100%;height:100%;min-height:inherit;max-height:inherit;animation:cat-dialog-enter .25s ease}.cat-dialog cat-scrollable{flex-grow:1}@keyframes cat-dialog-enter{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.cat-dialog-content.no-scroll{height:100%;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CatScrollable, selector: "cat-scrollable", inputs: ["noOverflowX", "noOverflowY", "noOverscroll", "noScrolledInit", "noShadowX", "noShadowY", "scrolledBuffer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, decorators: [{
1284
- type: Component,
1285
- args: [{ selector: 'cat-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
1286
- class: 'cat-dialog'
1287
- }, template: "<ng-content select=\"cat-dialog-header\"></ng-content>\n<cat-scrollable\n *ngIf=\"!noScroll; else noScrollTemplate\"\n [noOverscroll]=\"noOverscroll\"\n [noScrolledInit]=\"noScrolledInit\"\n [scrolledBuffer]=\"scrolledBuffer\"\n (scrolledBottom)=\"scrolledBottom.emit()\"\n>\n <div class=\"cat-dialog-content\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n</cat-scrollable>\n<ng-template #noScrollTemplate>\n <div class=\"cat-dialog-content no-scroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n</ng-template>\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n<ng-content select=\"cat-dialog-actions\"></ng-content>\n", styles: [".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cat-backdrop{transition-duration:.5s}.cat-dialog-pane{transform:translateZ(0)}.cat-dialog-pane .cdk-dialog-container>*:only-child{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}.cat-dialog{width:100%;height:100%;min-height:inherit;max-height:inherit;animation:cat-dialog-enter .25s ease}.cat-dialog cat-scrollable{flex-grow:1}@keyframes cat-dialog-enter{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.cat-dialog-content.no-scroll{height:100%;overflow:hidden}\n"] }]
1288
- }], ctorParameters: function () { return [{ type: i1$1.DialogRef }]; }, propDecorators: { noScroll: [{
1289
- type: Input
1290
- }], noOverscroll: [{
1291
- type: Input
1292
- }], noScrolledInit: [{
1293
- type: Input
1294
- }], scrolledBuffer: [{
1295
- type: Input
1296
- }], scrolledBottom: [{
1297
- type: Output
1298
- }], header: [{
1299
- type: ContentChild,
1300
- args: [CatDialogHeaderComponent]
1301
- }] } });
1302
-
1303
- class BooleanValueAccessor extends ValueAccessor {
1304
- constructor(el) {
1305
- super(el);
1306
- }
1307
- writeValue(value) {
1308
- this.el.nativeElement.checked = this.lastValue = this.el.nativeElement.value == null ? value : this.el.nativeElement.value === value;
1309
- }
1310
- }
1311
- BooleanValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1312
- BooleanValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: BooleanValueAccessor, selector: "cat-checkbox, cat-toggle", host: { listeners: { "catChange": "handleChangeEvent($event.target.resolvedValue)" } }, providers: [
1313
- {
1314
- provide: NG_VALUE_ACCESSOR,
1315
- useExisting: BooleanValueAccessor,
1316
- multi: true
1317
- }
1318
- ], usesInheritance: true, ngImport: i0 });
1319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BooleanValueAccessor, decorators: [{
1320
- type: Directive,
1321
- args: [{
1322
- /* tslint:disable-next-line:directive-selector */
1323
- selector: 'cat-checkbox, cat-toggle',
1324
- host: {
1325
- '(catChange)': 'handleChangeEvent($event.target.resolvedValue)'
1326
- },
1327
- providers: [
1328
- {
1329
- provide: NG_VALUE_ACCESSOR,
1330
- useExisting: BooleanValueAccessor,
1331
- multi: true
1332
- }
1333
- ]
1334
- }]
1335
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1336
-
1337
- class RadioValueAccessor extends ValueAccessor {
1338
- constructor(el) {
1339
- super(el);
1340
- }
1341
- }
1342
- RadioValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RadioValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1343
- RadioValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: RadioValueAccessor, selector: "cat-radio, cat-radio-group", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
1344
- {
1345
- provide: NG_VALUE_ACCESSOR,
1346
- useExisting: RadioValueAccessor,
1347
- multi: true
1348
- }
1349
- ], usesInheritance: true, ngImport: i0 });
1350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RadioValueAccessor, decorators: [{
1351
- type: Directive,
1352
- args: [{
1353
- /* tslint:disable-next-line:directive-selector */
1354
- selector: 'cat-radio, cat-radio-group',
1355
- host: {
1356
- '(catChange)': 'handleChangeEvent($event.target.value)'
1357
- },
1358
- providers: [
1359
- {
1360
- provide: NG_VALUE_ACCESSOR,
1361
- useExisting: RadioValueAccessor,
1362
- multi: true
1363
- }
1364
- ]
1365
- }]
1366
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1367
-
1368
- class SelectValueAccessor extends ValueAccessor {
1369
- constructor(el) {
1370
- super(el);
1371
- }
1372
- }
1373
- SelectValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1374
- SelectValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: SelectValueAccessor, selector: "cat-select, cat-tag", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
1375
- {
1376
- provide: NG_VALUE_ACCESSOR,
1377
- useExisting: SelectValueAccessor,
1378
- multi: true
1379
- }
1380
- ], usesInheritance: true, ngImport: i0 });
1381
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectValueAccessor, decorators: [{
1382
- type: Directive,
1383
- args: [{
1384
- /* tslint:disable-next-line:directive-selector */
1385
- selector: 'cat-select, cat-tag',
1386
- host: {
1387
- '(catChange)': 'handleChangeEvent($event.target.value)'
1388
- },
1389
- providers: [
1390
- {
1391
- provide: NG_VALUE_ACCESSOR,
1392
- useExisting: SelectValueAccessor,
1393
- multi: true
1394
- }
1395
- ]
1396
- }]
1397
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1398
-
1399
- class SelectValueAccessorDecorator {
1400
- constructor(el) {
1401
- this.el = el;
1402
- }
1403
- ngOnChanges({ connector }) {
1404
- if (connector === null || connector === void 0 ? void 0 : connector.currentValue) {
1405
- this.el.nativeElement.connect(connector.currentValue);
1406
- }
1407
- }
1408
- }
1409
- SelectValueAccessorDecorator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectValueAccessorDecorator, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1410
- SelectValueAccessorDecorator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: SelectValueAccessorDecorator, selector: "cat-select", inputs: { connector: "connector" }, usesOnChanges: true, ngImport: i0 });
1411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SelectValueAccessorDecorator, decorators: [{
1412
- type: Directive,
1413
- args: [{
1414
- /* tslint:disable-next-line:directive-selector */
1415
- selector: 'cat-select'
1416
- }]
1417
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { connector: [{
1418
- type: Input
1419
- }] } });
1420
-
1421
- class TextValueAccessor extends ValueAccessor {
1422
- constructor(el) {
1423
- super(el);
1424
- }
1425
- }
1426
- TextValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1427
- TextValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TextValueAccessor, selector: "cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
1428
- {
1429
- provide: NG_VALUE_ACCESSOR,
1430
- useExisting: TextValueAccessor,
1431
- multi: true
1432
- }
1433
- ], usesInheritance: true, ngImport: i0 });
1434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextValueAccessor, decorators: [{
1435
- type: Directive,
1436
- args: [{
1437
- /* tslint:disable-next-line:directive-selector */
1438
- selector: 'cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline',
1439
- host: {
1440
- '(catChange)': 'handleChangeEvent($event.target.value)'
1441
- },
1442
- providers: [
1443
- {
1444
- provide: NG_VALUE_ACCESSOR,
1445
- useExisting: TextValueAccessor,
1446
- multi: true
1447
- }
1448
- ]
1449
- }]
1450
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1451
-
1452
- class ValueAccessorDecorator {
1453
- constructor(el, controlDirective, controlContainer) {
1454
- this.el = el;
1455
- this.controlDirective = controlDirective;
1456
- this.controlContainer = controlContainer;
1457
- /**
1458
- * Whether to show errors directly after initialization
1459
- * (i.e. before the user has interacted with the input).
1460
- */
1461
- this.errorInit = false;
1462
- }
1463
- ngAfterViewInit() {
1464
- var _a, _b, _c, _d, _e, _f, _g;
1465
- (_b = (_a = this.controlDirective) === null || _a === void 0 ? void 0 : _a.statusChanges) === null || _b === void 0 ? void 0 : _b.subscribe(() => this.updateErrors());
1466
- const controlName = (_e = (_d = (_c = this.controlDirective) === null || _c === void 0 ? void 0 : _c.name) === null || _d === void 0 ? void 0 : _d.toString()) !== null && _e !== void 0 ? _e : '';
1467
- const control = (_g = (_f = this.controlContainer) === null || _f === void 0 ? void 0 : _f.control) === null || _g === void 0 ? void 0 : _g.get(controlName);
1468
- if (control === null || control === void 0 ? void 0 : control.hasValidator(Validators.required)) {
1469
- this.el.nativeElement.required = true;
1470
- }
1471
- if (this.errorInit) {
1472
- this.updateErrors();
1473
- }
1474
- }
1475
- updateErrors() {
1476
- var _a, _b;
1477
- this.el.nativeElement.errors = ((_a = this.controlDirective) === null || _a === void 0 ? void 0 : _a.errors) || !!((_b = this.controlDirective) === null || _b === void 0 ? void 0 : _b.invalid);
1478
- }
1479
- }
1480
- ValueAccessorDecorator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: i1.ControlContainer, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
1481
- ValueAccessorDecorator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: ValueAccessorDecorator, selector: "cat-input, cat-textarea, cat-datepicker, cat-select, cat-date, cat-time, cat-tag", inputs: { errorInit: "errorInit" }, host: { listeners: { "catBlur": "updateErrors()" } }, ngImport: i0 });
1482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, decorators: [{
1483
- type: Directive,
1484
- args: [{
1485
- /* tslint:disable-next-line:directive-selector */
1486
- selector: 'cat-input, cat-textarea, cat-datepicker, cat-select, cat-date, cat-time, cat-tag',
1487
- host: {
1488
- '(catBlur)': 'updateErrors()'
1489
- }
1490
- }]
1491
- }], ctorParameters: function () {
1492
- return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
1493
- type: Self
1494
- }, {
1495
- type: Optional
1496
- }] }, { type: i1.ControlContainer, decorators: [{
1497
- type: Optional
1498
- }, {
1499
- type: Host
1500
- }, {
1501
- type: SkipSelf
1502
- }] }];
1503
- }, propDecorators: { errorInit: [{
1504
- type: Input
1505
- }] } });
1506
-
1507
- /**
1508
- * A directive that can be used to add a Catalyst tooltip to an element.
1509
- */
1510
- class CatTooltipDirective {
1511
- constructor(templateRef, viewContainer) {
1512
- this.templateRef = templateRef;
1513
- this.viewContainer = viewContainer;
1514
- }
1515
- ngOnInit() {
1516
- this.component = this.viewContainer.createComponent(CatTooltip, {
1517
- projectableNodes: [this.viewContainer.createEmbeddedView(this.templateRef).rootNodes]
1518
- });
1519
- this.component.instance.content = this.catTooltip;
1520
- }
1521
- ngOnChanges() {
1522
- if (this.component) {
1523
- this.component.instance.content = this.catTooltip;
1524
- }
1525
- }
1526
- }
1527
- CatTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltipDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1528
- CatTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: CatTooltipDirective, selector: "[catTooltip]", inputs: { catTooltip: "catTooltip" }, usesOnChanges: true, ngImport: i0 });
1529
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltipDirective, decorators: [{
1530
- type: Directive,
1531
- args: [{
1532
- selector: '[catTooltip]'
1533
- }]
1534
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { catTooltip: [{
1535
- type: Input
1536
- }] } });
1537
-
1538
- const CatComponents = [
1539
- CatAlert,
1540
- CatAvatar,
1541
- CatBadge,
1542
- CatButton,
1543
- CatButtonGroup,
1544
- CatCard,
1545
- CatCheckbox,
1546
- CatDate,
1547
- CatDateInline,
1548
- CatDatepicker,
1549
- CatDropdown,
1550
- CatFormGroup,
1551
- CatIcon,
1552
- CatInput,
1553
- CatPagination,
1554
- CatRadio,
1555
- CatRadioGroup,
1556
- CatScrollable,
1557
- CatSelect,
1558
- CatSkeleton,
1559
- CatSpinner,
1560
- CatTab,
1561
- CatTabs,
1562
- CatTextarea,
1563
- CatTime,
1564
- CatToggle,
1565
- CatTooltip,
1566
- CatTag
1567
- ];
1568
- const CatDirectives = [
1569
- BooleanValueAccessor,
1570
- DateValueAccessor,
1571
- RadioValueAccessor,
1572
- SelectValueAccessor,
1573
- SelectValueAccessorDecorator,
1574
- TextValueAccessor,
1575
- TimeValueAccessor,
1576
- ValueAccessorDecorator,
1577
- DatetimeComponent
1578
- ];
1579
- class CatalystModule {
1580
- static forRoot() {
1581
- defineCustomElements();
1582
- return {
1583
- ngModule: CatalystModule
1584
- };
1585
- }
1586
- }
1587
- CatalystModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1588
- CatalystModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, declarations: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatTime, CatToggle, CatTooltip, CatTag, BooleanValueAccessor,
1589
- DateValueAccessor,
1590
- RadioValueAccessor,
1591
- SelectValueAccessor,
1592
- SelectValueAccessorDecorator,
1593
- TextValueAccessor,
1594
- TimeValueAccessor,
1595
- ValueAccessorDecorator,
1596
- DatetimeComponent, CatDialogComponent,
1597
- CatDialogHeaderComponent,
1598
- CatDialogActionsComponent,
1599
- CatTooltipDirective], imports: [CommonModule, DialogModule], exports: [CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatTime, CatToggle, CatTooltip, CatTag, BooleanValueAccessor,
1600
- DateValueAccessor,
1601
- RadioValueAccessor,
1602
- SelectValueAccessor,
1603
- SelectValueAccessorDecorator,
1604
- TextValueAccessor,
1605
- TimeValueAccessor,
1606
- ValueAccessorDecorator,
1607
- DatetimeComponent, CatDialogComponent,
1608
- CatDialogHeaderComponent,
1609
- CatDialogActionsComponent,
1610
- CatTooltipDirective] });
1611
- CatalystModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, imports: [CommonModule, DialogModule] });
1612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatalystModule, decorators: [{
1613
- type: NgModule,
1614
- args: [{
1615
- imports: [CommonModule, DialogModule],
1616
- declarations: [
1617
- ...CatComponents,
1618
- ...CatDirectives,
1619
- CatDialogComponent,
1620
- CatDialogHeaderComponent,
1621
- CatDialogActionsComponent,
1622
- CatTooltipDirective
1623
- ],
1624
- exports: [
1625
- ...CatComponents,
1626
- ...CatDirectives,
1627
- CatDialogComponent,
1628
- CatDialogHeaderComponent,
1629
- CatDialogActionsComponent,
1630
- CatTooltipDirective
1631
- ],
1632
- providers: []
1633
- }]
1634
- }] });
1635
-
1636
- /**
1637
- * Injection token for custom dialog sizes. The map should contain a key-value
1638
- * pair of size names and their corresponding CSS width values. The key `default`
1639
- * is used as the default size when no size is specified.
1640
- */
1641
- const CAT_DIALOG_SIZE_TOKEN = new InjectionToken('CatDialogSize');
1642
- /**
1643
- * A service for managing modal dialogs.
1644
- */
1645
- class CatDialogService {
1646
- constructor(dialog, size) {
1647
- this.dialog = dialog;
1648
- this.size = size;
1649
- }
1650
- /**
1651
- * Opens a modal dialog containing the given component.
1652
- *
1653
- * @param component The component to render as dialog content.
1654
- * @param config The dialog configuration.
1655
- * @returns The return value of the dialog.
1656
- */
1657
- open(component, config) {
1658
- return this.openWithRef(component, config).closed;
1659
- }
1660
- /**
1661
- * Opens a modal dialog containing the given component and returns a reference to the dialog.
1662
- *
1663
- * @param component - The component to render as dialog content.
1664
- * @param config - The dialog configuration.
1665
- * @returns A reference to the just opened dialog.
1666
- */
1667
- openWithRef(component, config) {
1668
- var _a, _b, _c, _d, _e;
1669
- const panelClass = (_a = config === null || config === void 0 ? void 0 : config.panelClass) !== null && _a !== void 0 ? _a : [];
1670
- return this.dialog.open(component, Object.assign(Object.assign({ backdropClass: 'cat-backdrop', minWidth: 'clamp(240px, 100vw - 16px, 320px)', minHeight: 'clamp(144px, 100vh - 16px, 160px)', maxHeight: 'calc(100vh - 64px)', maxWidth: 'calc(100vw - 64px)' }, config), { width: (config === null || config === void 0 ? void 0 : config.width) ? ((_c = (_b = this.size) === null || _b === void 0 ? void 0 : _b[config.width]) !== null && _c !== void 0 ? _c : config.width) : ((_e = (_d = this.size) === null || _d === void 0 ? void 0 : _d['default']) !== null && _e !== void 0 ? _e : '600px'), panelClass: ['cat-dialog-pane', ...(Array.isArray(panelClass) ? panelClass : [panelClass])] }));
1671
- }
1672
- /**
1673
- * Closes all open dialogs.
1674
- */
1675
- closeAll() {
1676
- this.dialog.closeAll();
1677
- }
1678
- }
1679
- CatDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, deps: [{ token: i1$1.Dialog }, { token: CAT_DIALOG_SIZE_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1680
- CatDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, providedIn: 'root' });
1681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, decorators: [{
1682
- type: Injectable,
1683
- args: [{
1684
- providedIn: 'root'
1685
- }]
1686
- }], ctorParameters: function () {
1687
- return [{ type: i1$1.Dialog }, { type: undefined, decorators: [{
1688
- type: Optional
1689
- }, {
1690
- type: Inject,
1691
- args: [CAT_DIALOG_SIZE_TOKEN]
1692
- }] }];
1693
- } });
1694
-
1695
- /**
1696
- * Generated bundle index. Do not edit.
1697
- */
1698
-
1699
- export { BooleanValueAccessor, CAT_DIALOG_SIZE_TOKEN, CAT_I18N_REGISTRY_TOKEN, CAT_ICON_REGISTRY_TOKEN, CAT_LOG_TOKEN, CAT_NOTIFICATION_SERVICE_TOKEN, CatAlert, CatAvatar, CatBadge, CatButton, CatButtonGroup, CatCard, CatCheckbox, CatDate, CatDateInline, CatDatepicker, CatDatepickerInline, CatDialogActionsComponent, CatDialogComponent, CatDialogHeaderComponent, CatDialogService, CatDropdown, CatFormGroup, CatIcon, CatInput, CatPagination, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectDemo, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTag, CatTextarea, CatTime, CatToggle, CatTooltip, CatTooltipDirective, CatalystModule, DateValueAccessor, DatetimeComponent, RadioValueAccessor, SelectValueAccessor, SelectValueAccessorDecorator, TextValueAccessor, TimeValueAccessor, ValueAccessor, ValueAccessorDecorator };
1700
- //# sourceMappingURL=haiilo-catalyst-angular.mjs.map