@haiilo/catalyst-angular 10.26.1 → 10.28.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.
- package/esm2020/lib/directives/date-value-accessor.mjs +26 -8
- package/esm2020/lib/directives/proxies.mjs +7 -7
- package/esm2020/lib/directives/time-value-accessor.mjs +26 -8
- package/fesm2015/haiilo-catalyst-angular.mjs +69 -27
- package/fesm2015/haiilo-catalyst-angular.mjs.map +1 -1
- package/fesm2020/haiilo-catalyst-angular.mjs +61 -27
- package/fesm2020/haiilo-catalyst-angular.mjs.map +1 -1
- package/lib/directives/date-value-accessor.d.ts +8 -4
- package/lib/directives/proxies.d.ts +2 -2
- package/lib/directives/time-value-accessor.d.ts +8 -4
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Directive, HostListener, Component, ViewEncapsulation, ContentChild, Input, ChangeDetectionStrategy, EventEmitter, Inject, Output, Self,
|
|
2
|
+
import { InjectionToken, Directive, HostListener, Optional, SkipSelf, Component, ViewEncapsulation, ContentChild, Input, ChangeDetectionStrategy, EventEmitter, Inject, Output, Self, Host, NgModule, Injectable } from '@angular/core';
|
|
3
3
|
import * as i3 from '@haiilo/catalyst';
|
|
4
4
|
import { catI18nRegistry, catIconRegistry, catNotificationService } from '@haiilo/catalyst';
|
|
5
5
|
import log from 'loglevel';
|
|
6
|
-
import * as i1 from '@angular/cdk/dialog';
|
|
6
|
+
import * as i1$1 from '@angular/cdk/dialog';
|
|
7
7
|
import { DialogModule } from '@angular/cdk/dialog';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
10
|
import { defineCustomElements } from '@haiilo/catalyst/loader';
|
|
11
|
-
import * as i1
|
|
12
|
-
import {
|
|
11
|
+
import * as i1 from '@angular/forms';
|
|
12
|
+
import { Validators, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
13
13
|
import { __decorate } from 'tslib';
|
|
14
14
|
import { fromEvent } from 'rxjs';
|
|
15
15
|
|
|
@@ -70,12 +70,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
70
70
|
}] } });
|
|
71
71
|
|
|
72
72
|
class DateValueAccessor extends ValueAccessor {
|
|
73
|
-
constructor(el) {
|
|
73
|
+
constructor(el, ngControl) {
|
|
74
74
|
super(el);
|
|
75
|
+
this.ngControl = ngControl;
|
|
75
76
|
}
|
|
76
77
|
get nativeElement() {
|
|
77
78
|
return this.el.nativeElement;
|
|
78
79
|
}
|
|
80
|
+
ngAfterViewInit() {
|
|
81
|
+
if (this.ngControl?.control?.hasValidator(Validators.required)) {
|
|
82
|
+
this.el.nativeElement.required = true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
79
85
|
writeValue(value) {
|
|
80
86
|
if (!this.el.nativeElement.range) {
|
|
81
87
|
return super.writeValue(this.toISO(value));
|
|
@@ -97,6 +103,12 @@ class DateValueAccessor extends ValueAccessor {
|
|
|
97
103
|
}
|
|
98
104
|
super.handleChangeEvent(null);
|
|
99
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
|
+
}
|
|
100
112
|
toISO(value) {
|
|
101
113
|
if (value instanceof Date) {
|
|
102
114
|
const year = value.getFullYear();
|
|
@@ -111,8 +123,8 @@ class DateValueAccessor extends ValueAccessor {
|
|
|
111
123
|
return match ? new Date(Number(year), Number(month) - 1, Number(day)) : null;
|
|
112
124
|
}
|
|
113
125
|
}
|
|
114
|
-
DateValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
115
|
-
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)" } }, providers: [
|
|
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: [
|
|
116
128
|
{
|
|
117
129
|
provide: NG_VALUE_ACCESSOR,
|
|
118
130
|
useExisting: DateValueAccessor,
|
|
@@ -125,7 +137,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
125
137
|
/* tslint:disable-next-line:directive-selector */
|
|
126
138
|
selector: 'cat-date, cat-date-inline',
|
|
127
139
|
host: {
|
|
128
|
-
'(catChange)': 'handleChangeEvent($event.target.value)'
|
|
140
|
+
'(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
|
|
141
|
+
'(catBlur)': 'updateErrors()'
|
|
129
142
|
},
|
|
130
143
|
providers: [
|
|
131
144
|
{
|
|
@@ -135,15 +148,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
135
148
|
}
|
|
136
149
|
]
|
|
137
150
|
}]
|
|
138
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }
|
|
151
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
152
|
+
type: Optional
|
|
153
|
+
}, {
|
|
154
|
+
type: SkipSelf
|
|
155
|
+
}] }]; } });
|
|
139
156
|
|
|
140
157
|
class TimeValueAccessor extends ValueAccessor {
|
|
141
|
-
constructor(el) {
|
|
158
|
+
constructor(el, ngControl) {
|
|
142
159
|
super(el);
|
|
160
|
+
this.ngControl = ngControl;
|
|
143
161
|
}
|
|
144
162
|
get nativeElement() {
|
|
145
163
|
return this.el.nativeElement;
|
|
146
164
|
}
|
|
165
|
+
ngAfterViewInit() {
|
|
166
|
+
if (this.ngControl?.control?.hasValidator(Validators.required)) {
|
|
167
|
+
this.el.nativeElement.required = true;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
147
170
|
writeValue(value) {
|
|
148
171
|
if (value && value instanceof Date) {
|
|
149
172
|
const hours = value.getHours().toString().padStart(2, '0');
|
|
@@ -161,9 +184,15 @@ class TimeValueAccessor extends ValueAccessor {
|
|
|
161
184
|
}
|
|
162
185
|
return super.handleChangeEvent(null);
|
|
163
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
|
+
}
|
|
164
193
|
}
|
|
165
|
-
TimeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
166
|
-
TimeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TimeValueAccessor, selector: "cat-time", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
|
|
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: [
|
|
167
196
|
{
|
|
168
197
|
provide: NG_VALUE_ACCESSOR,
|
|
169
198
|
useExisting: TimeValueAccessor,
|
|
@@ -176,7 +205,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
176
205
|
/* tslint:disable-next-line:directive-selector */
|
|
177
206
|
selector: 'cat-time',
|
|
178
207
|
host: {
|
|
179
|
-
'(catChange)': 'handleChangeEvent($event.target.value)'
|
|
208
|
+
'(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
|
|
209
|
+
'(catBlur)': 'updateErrors()'
|
|
180
210
|
},
|
|
181
211
|
providers: [
|
|
182
212
|
{
|
|
@@ -186,7 +216,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
186
216
|
}
|
|
187
217
|
]
|
|
188
218
|
}]
|
|
189
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }
|
|
219
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
220
|
+
type: Optional
|
|
221
|
+
}, {
|
|
222
|
+
type: SkipSelf
|
|
223
|
+
}] }]; } });
|
|
190
224
|
|
|
191
225
|
class DatetimeComponent {
|
|
192
226
|
get min() {
|
|
@@ -950,10 +984,10 @@ let CatSpinner = class CatSpinner {
|
|
|
950
984
|
}
|
|
951
985
|
};
|
|
952
986
|
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 });
|
|
953
|
-
CatSpinner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CatSpinner, selector: "cat-spinner", inputs: { a11yLabel: "a11yLabel", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
987
|
+
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 });
|
|
954
988
|
CatSpinner = __decorate([
|
|
955
989
|
ProxyCmp({
|
|
956
|
-
inputs: ['a11yLabel', 'size']
|
|
990
|
+
inputs: ['a11yLabel', 'size', 'value']
|
|
957
991
|
})
|
|
958
992
|
], CatSpinner);
|
|
959
993
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSpinner, decorators: [{
|
|
@@ -963,7 +997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
963
997
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
964
998
|
template: '<ng-content></ng-content>',
|
|
965
999
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
966
|
-
inputs: ['a11yLabel', 'size'],
|
|
1000
|
+
inputs: ['a11yLabel', 'size', 'value'],
|
|
967
1001
|
}]
|
|
968
1002
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
969
1003
|
let CatTab = class CatTab {
|
|
@@ -975,10 +1009,10 @@ let CatTab = class CatTab {
|
|
|
975
1009
|
}
|
|
976
1010
|
};
|
|
977
1011
|
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 });
|
|
978
|
-
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", url: "url", urlTarget: "urlTarget" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1012
|
+
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", url: "url", urlTarget: "urlTarget" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
979
1013
|
CatTab = __decorate([
|
|
980
1014
|
ProxyCmp({
|
|
981
|
-
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'url', 'urlTarget']
|
|
1015
|
+
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'url', 'urlTarget']
|
|
982
1016
|
})
|
|
983
1017
|
], CatTab);
|
|
984
1018
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTab, decorators: [{
|
|
@@ -988,7 +1022,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
988
1022
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
989
1023
|
template: '<ng-content></ng-content>',
|
|
990
1024
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
991
|
-
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'url', 'urlTarget'],
|
|
1025
|
+
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'url', 'urlTarget'],
|
|
992
1026
|
}]
|
|
993
1027
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
994
1028
|
let CatTabs = class CatTabs {
|
|
@@ -1214,14 +1248,14 @@ class CatDialogComponent {
|
|
|
1214
1248
|
this.header?.close.subscribe(() => this.dialogRef.close());
|
|
1215
1249
|
}
|
|
1216
1250
|
}
|
|
1217
|
-
CatDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1251
|
+
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 });
|
|
1218
1252
|
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 });
|
|
1219
1253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, decorators: [{
|
|
1220
1254
|
type: Component,
|
|
1221
1255
|
args: [{ selector: 'cat-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1222
1256
|
class: 'cat-dialog'
|
|
1223
1257
|
}, 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"] }]
|
|
1224
|
-
}], ctorParameters: function () { return [{ type: i1.DialogRef }]; }, propDecorators: { noScroll: [{
|
|
1258
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }]; }, propDecorators: { noScroll: [{
|
|
1225
1259
|
type: Input
|
|
1226
1260
|
}], noOverscroll: [{
|
|
1227
1261
|
type: Input
|
|
@@ -1411,7 +1445,7 @@ class ValueAccessorDecorator {
|
|
|
1411
1445
|
this.el.nativeElement.errors = this.controlDirective?.errors || !!this.controlDirective?.invalid;
|
|
1412
1446
|
}
|
|
1413
1447
|
}
|
|
1414
|
-
ValueAccessorDecorator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, deps: [{ token: i0.ElementRef }, { token: i1
|
|
1448
|
+
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 });
|
|
1415
1449
|
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 });
|
|
1416
1450
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, decorators: [{
|
|
1417
1451
|
type: Directive,
|
|
@@ -1422,11 +1456,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1422
1456
|
'(catBlur)': 'updateErrors()'
|
|
1423
1457
|
}
|
|
1424
1458
|
}]
|
|
1425
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1
|
|
1459
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
1426
1460
|
type: Self
|
|
1427
1461
|
}, {
|
|
1428
1462
|
type: Optional
|
|
1429
|
-
}] }, { type: i1
|
|
1463
|
+
}] }, { type: i1.ControlContainer, decorators: [{
|
|
1430
1464
|
type: Optional
|
|
1431
1465
|
}, {
|
|
1432
1466
|
type: Host
|
|
@@ -1574,14 +1608,14 @@ class CatDialogService {
|
|
|
1574
1608
|
this.dialog.closeAll();
|
|
1575
1609
|
}
|
|
1576
1610
|
}
|
|
1577
|
-
CatDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, deps: [{ token: i1.Dialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1611
|
+
CatDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, deps: [{ token: i1$1.Dialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1578
1612
|
CatDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, providedIn: 'root' });
|
|
1579
1613
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, decorators: [{
|
|
1580
1614
|
type: Injectable,
|
|
1581
1615
|
args: [{
|
|
1582
1616
|
providedIn: 'root'
|
|
1583
1617
|
}]
|
|
1584
|
-
}], ctorParameters: function () { return [{ type: i1.Dialog }]; } });
|
|
1618
|
+
}], ctorParameters: function () { return [{ type: i1$1.Dialog }]; } });
|
|
1585
1619
|
|
|
1586
1620
|
/**
|
|
1587
1621
|
* Generated bundle index. Do not edit.
|