@haiilo/catalyst-angular 10.16.0 → 10.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/catalyst.module.mjs +2 -20
- package/esm2020/lib/dialog/dialog-header.component.mjs +2 -2
- package/esm2020/lib/directives/proxies.mjs +10 -10
- package/esm2020/lib/injection-token.mjs +21 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/haiilo-catalyst-angular.mjs +32 -30
- package/fesm2015/haiilo-catalyst-angular.mjs.map +1 -1
- package/fesm2020/haiilo-catalyst-angular.mjs +32 -30
- package/fesm2020/haiilo-catalyst-angular.mjs.map +1 -1
- package/lib/catalyst.module.d.ts +1 -7
- package/lib/directives/proxies.d.ts +3 -3
- package/lib/injection-token.d.ts +7 -0
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
|
@@ -1,18 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Inject, Output, ContentChild, Directive, HostListener, Self, Optional, Host, SkipSelf, 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';
|
|
1
6
|
import * as i1$1 from '@angular/cdk/dialog';
|
|
2
7
|
import { DialogModule } from '@angular/cdk/dialog';
|
|
3
8
|
import * as i1 from '@angular/common';
|
|
4
9
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Inject, Output, ContentChild, Directive, HostListener, Self, Optional, Host, SkipSelf, InjectionToken, NgModule, Injectable } from '@angular/core';
|
|
7
|
-
import * as i3 from '@haiilo/catalyst';
|
|
8
|
-
import { catI18nRegistry, catIconRegistry, catNotificationService } from '@haiilo/catalyst';
|
|
9
10
|
import { defineCustomElements } from '@haiilo/catalyst/loader';
|
|
10
|
-
import log from 'loglevel';
|
|
11
11
|
import { __decorate } from 'tslib';
|
|
12
12
|
import { fromEvent } from 'rxjs';
|
|
13
13
|
import * as i1$2 from '@angular/forms';
|
|
14
14
|
import { NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
|
|
15
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
|
+
|
|
16
34
|
/**
|
|
17
35
|
* The bottom actions of a dialog.
|
|
18
36
|
*/
|
|
@@ -249,10 +267,10 @@ let CatCheckbox = class CatCheckbox {
|
|
|
249
267
|
}
|
|
250
268
|
};
|
|
251
269
|
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 });
|
|
252
|
-
CatCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatCheckbox, selector: "cat-checkbox", inputs: { checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", indeterminate: "indeterminate", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", noValue: "noValue", required: "required", resolvedValue: "resolvedValue", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
270
|
+
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", resolvedValue: "resolvedValue", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
253
271
|
CatCheckbox = __decorate([
|
|
254
272
|
ProxyCmp({
|
|
255
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
273
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
256
274
|
methods: ['doFocus', 'doBlur']
|
|
257
275
|
})
|
|
258
276
|
], CatCheckbox);
|
|
@@ -263,7 +281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
263
281
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
264
282
|
template: '<ng-content></ng-content>',
|
|
265
283
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
266
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
284
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
267
285
|
}]
|
|
268
286
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
269
287
|
let CatDate = class CatDate {
|
|
@@ -503,10 +521,10 @@ let CatRadio = class CatRadio {
|
|
|
503
521
|
}
|
|
504
522
|
};
|
|
505
523
|
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 });
|
|
506
|
-
CatRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatRadio, selector: "cat-radio", inputs: { checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
524
|
+
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", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
507
525
|
CatRadio = __decorate([
|
|
508
526
|
ProxyCmp({
|
|
509
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'value'],
|
|
527
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'value'],
|
|
510
528
|
methods: ['doFocus', 'doBlur']
|
|
511
529
|
})
|
|
512
530
|
], CatRadio);
|
|
@@ -517,7 +535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
517
535
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
518
536
|
template: '<ng-content></ng-content>',
|
|
519
537
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
520
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'value'],
|
|
538
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'required', 'value'],
|
|
521
539
|
}]
|
|
522
540
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
523
541
|
let CatRadioGroup = class CatRadioGroup {
|
|
@@ -778,10 +796,10 @@ let CatToggle = class CatToggle {
|
|
|
778
796
|
}
|
|
779
797
|
};
|
|
780
798
|
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 });
|
|
781
|
-
CatToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatToggle, selector: "cat-toggle", inputs: { checked: "checked", disabled: "disabled", hint: "hint", identifier: "identifier", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", nativeAttributes: "nativeAttributes", noValue: "noValue", required: "required", resolvedValue: "resolvedValue", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
799
|
+
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", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
782
800
|
CatToggle = __decorate([
|
|
783
801
|
ProxyCmp({
|
|
784
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
802
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
785
803
|
methods: ['doFocus', 'doBlur']
|
|
786
804
|
})
|
|
787
805
|
], CatToggle);
|
|
@@ -792,7 +810,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
792
810
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
793
811
|
template: '<ng-content></ng-content>',
|
|
794
812
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
795
|
-
inputs: ['checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
813
|
+
inputs: ['alignment', 'checked', 'disabled', 'hint', 'identifier', 'label', 'labelHidden', 'labelLeft', 'name', 'nativeAttributes', 'noValue', 'required', 'resolvedValue', 'value'],
|
|
796
814
|
}]
|
|
797
815
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
798
816
|
let CatTooltip = class CatTooltip {
|
|
@@ -1444,22 +1462,6 @@ const CatDirectives = [
|
|
|
1444
1462
|
ValueAccessorDecorator,
|
|
1445
1463
|
DatetimeComponent
|
|
1446
1464
|
];
|
|
1447
|
-
const CAT_LOG_TOKEN = new InjectionToken('CAT_LOG', {
|
|
1448
|
-
providedIn: 'root',
|
|
1449
|
-
factory: () => log
|
|
1450
|
-
});
|
|
1451
|
-
const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
|
|
1452
|
-
providedIn: 'root',
|
|
1453
|
-
factory: () => catI18nRegistry
|
|
1454
|
-
});
|
|
1455
|
-
const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
|
|
1456
|
-
providedIn: 'root',
|
|
1457
|
-
factory: () => catIconRegistry
|
|
1458
|
-
});
|
|
1459
|
-
const CAT_NOTIFICATION_SERVICE_TOKEN = new InjectionToken('CAT_NOTIFICATION_SERVICE', {
|
|
1460
|
-
providedIn: 'root',
|
|
1461
|
-
factory: () => catNotificationService
|
|
1462
|
-
});
|
|
1463
1465
|
class CatalystModule {
|
|
1464
1466
|
static forRoot() {
|
|
1465
1467
|
defineCustomElements();
|