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