@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,19 @@ 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
|
+
var _a, _b;
|
|
82
|
+
if ((_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.hasValidator(Validators.required)) {
|
|
83
|
+
this.el.nativeElement.required = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
79
86
|
writeValue(value) {
|
|
80
87
|
if (!this.el.nativeElement.range) {
|
|
81
88
|
return super.writeValue(this.toISO(value));
|
|
@@ -98,6 +105,13 @@ class DateValueAccessor extends ValueAccessor {
|
|
|
98
105
|
}
|
|
99
106
|
super.handleChangeEvent(null);
|
|
100
107
|
}
|
|
108
|
+
updateErrors() {
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
var _a, _b, _c;
|
|
111
|
+
this.el.nativeElement.errors =
|
|
112
|
+
((_c = (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c.required) && !this.el.nativeElement.value ? { required: true } : null;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
101
115
|
toISO(value) {
|
|
102
116
|
if (value instanceof Date) {
|
|
103
117
|
const year = value.getFullYear();
|
|
@@ -113,8 +127,8 @@ class DateValueAccessor extends ValueAccessor {
|
|
|
113
127
|
return match ? new Date(Number(year), Number(month) - 1, Number(day)) : null;
|
|
114
128
|
}
|
|
115
129
|
}
|
|
116
|
-
DateValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
117
|
-
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: [
|
|
130
|
+
DateValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
131
|
+
DateValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: DateValueAccessor, selector: "cat-date, cat-date-inline", host: { listeners: { "catChange": "handleChangeEvent($event.target.value); updateErrors()", "catBlur": "updateErrors()" } }, providers: [
|
|
118
132
|
{
|
|
119
133
|
provide: NG_VALUE_ACCESSOR,
|
|
120
134
|
useExisting: DateValueAccessor,
|
|
@@ -127,7 +141,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
127
141
|
/* tslint:disable-next-line:directive-selector */
|
|
128
142
|
selector: 'cat-date, cat-date-inline',
|
|
129
143
|
host: {
|
|
130
|
-
'(catChange)': 'handleChangeEvent($event.target.value)'
|
|
144
|
+
'(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
|
|
145
|
+
'(catBlur)': 'updateErrors()'
|
|
131
146
|
},
|
|
132
147
|
providers: [
|
|
133
148
|
{
|
|
@@ -137,15 +152,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
137
152
|
}
|
|
138
153
|
]
|
|
139
154
|
}]
|
|
140
|
-
}], ctorParameters: function () {
|
|
155
|
+
}], ctorParameters: function () {
|
|
156
|
+
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
157
|
+
type: Optional
|
|
158
|
+
}, {
|
|
159
|
+
type: SkipSelf
|
|
160
|
+
}] }];
|
|
161
|
+
} });
|
|
141
162
|
|
|
142
163
|
class TimeValueAccessor extends ValueAccessor {
|
|
143
|
-
constructor(el) {
|
|
164
|
+
constructor(el, ngControl) {
|
|
144
165
|
super(el);
|
|
166
|
+
this.ngControl = ngControl;
|
|
145
167
|
}
|
|
146
168
|
get nativeElement() {
|
|
147
169
|
return this.el.nativeElement;
|
|
148
170
|
}
|
|
171
|
+
ngAfterViewInit() {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
if ((_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.hasValidator(Validators.required)) {
|
|
174
|
+
this.el.nativeElement.required = true;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
149
177
|
writeValue(value) {
|
|
150
178
|
if (value && value instanceof Date) {
|
|
151
179
|
const hours = value.getHours().toString().padStart(2, '0');
|
|
@@ -164,9 +192,16 @@ class TimeValueAccessor extends ValueAccessor {
|
|
|
164
192
|
}
|
|
165
193
|
return super.handleChangeEvent(null);
|
|
166
194
|
}
|
|
195
|
+
updateErrors() {
|
|
196
|
+
setTimeout(() => {
|
|
197
|
+
var _a, _b, _c;
|
|
198
|
+
this.el.nativeElement.errors =
|
|
199
|
+
((_c = (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c.required) && !this.el.nativeElement.value ? { required: true } : null;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
167
202
|
}
|
|
168
|
-
TimeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
169
|
-
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: [
|
|
203
|
+
TimeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeValueAccessor, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
204
|
+
TimeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TimeValueAccessor, selector: "cat-time", host: { listeners: { "catChange": "handleChangeEvent($event.target.value); updateErrors()", "catBlur": "updateErrors()" } }, providers: [
|
|
170
205
|
{
|
|
171
206
|
provide: NG_VALUE_ACCESSOR,
|
|
172
207
|
useExisting: TimeValueAccessor,
|
|
@@ -179,7 +214,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
179
214
|
/* tslint:disable-next-line:directive-selector */
|
|
180
215
|
selector: 'cat-time',
|
|
181
216
|
host: {
|
|
182
|
-
'(catChange)': 'handleChangeEvent($event.target.value)'
|
|
217
|
+
'(catChange)': 'handleChangeEvent($event.target.value); updateErrors()',
|
|
218
|
+
'(catBlur)': 'updateErrors()'
|
|
183
219
|
},
|
|
184
220
|
providers: [
|
|
185
221
|
{
|
|
@@ -189,7 +225,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
189
225
|
}
|
|
190
226
|
]
|
|
191
227
|
}]
|
|
192
|
-
}], ctorParameters: function () {
|
|
228
|
+
}], ctorParameters: function () {
|
|
229
|
+
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
230
|
+
type: Optional
|
|
231
|
+
}, {
|
|
232
|
+
type: SkipSelf
|
|
233
|
+
}] }];
|
|
234
|
+
} });
|
|
193
235
|
|
|
194
236
|
class DatetimeComponent {
|
|
195
237
|
get min() {
|
|
@@ -962,10 +1004,10 @@ let CatSpinner = class CatSpinner {
|
|
|
962
1004
|
}
|
|
963
1005
|
};
|
|
964
1006
|
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 });
|
|
965
|
-
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 });
|
|
1007
|
+
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 });
|
|
966
1008
|
CatSpinner = __decorate([
|
|
967
1009
|
ProxyCmp({
|
|
968
|
-
inputs: ['a11yLabel', 'size']
|
|
1010
|
+
inputs: ['a11yLabel', 'size', 'value']
|
|
969
1011
|
})
|
|
970
1012
|
], CatSpinner);
|
|
971
1013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatSpinner, decorators: [{
|
|
@@ -975,7 +1017,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
975
1017
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
976
1018
|
template: '<ng-content></ng-content>',
|
|
977
1019
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
978
|
-
inputs: ['a11yLabel', 'size'],
|
|
1020
|
+
inputs: ['a11yLabel', 'size', 'value'],
|
|
979
1021
|
}]
|
|
980
1022
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
981
1023
|
let CatTab = class CatTab {
|
|
@@ -987,10 +1029,10 @@ let CatTab = class CatTab {
|
|
|
987
1029
|
}
|
|
988
1030
|
};
|
|
989
1031
|
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 });
|
|
990
|
-
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 });
|
|
1032
|
+
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 });
|
|
991
1033
|
CatTab = __decorate([
|
|
992
1034
|
ProxyCmp({
|
|
993
|
-
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'url', 'urlTarget']
|
|
1035
|
+
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'url', 'urlTarget']
|
|
994
1036
|
})
|
|
995
1037
|
], CatTab);
|
|
996
1038
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTab, decorators: [{
|
|
@@ -1000,7 +1042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1000
1042
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1001
1043
|
template: '<ng-content></ng-content>',
|
|
1002
1044
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1003
|
-
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'url', 'urlTarget'],
|
|
1045
|
+
inputs: ['deactivated', 'error', 'icon', 'iconOnly', 'iconRight', 'label', 'nativeAttributes', 'noActive', 'url', 'urlTarget'],
|
|
1004
1046
|
}]
|
|
1005
1047
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1006
1048
|
let CatTabs = class CatTabs {
|
|
@@ -1229,14 +1271,14 @@ class CatDialogComponent {
|
|
|
1229
1271
|
(_a = this.header) === null || _a === void 0 ? void 0 : _a.close.subscribe(() => this.dialogRef.close());
|
|
1230
1272
|
}
|
|
1231
1273
|
}
|
|
1232
|
-
CatDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1274
|
+
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 });
|
|
1233
1275
|
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 });
|
|
1234
1276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogComponent, decorators: [{
|
|
1235
1277
|
type: Component,
|
|
1236
1278
|
args: [{ selector: 'cat-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1237
1279
|
class: 'cat-dialog'
|
|
1238
1280
|
}, 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"] }]
|
|
1239
|
-
}], ctorParameters: function () { return [{ type: i1.DialogRef }]; }, propDecorators: { noScroll: [{
|
|
1281
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }]; }, propDecorators: { noScroll: [{
|
|
1240
1282
|
type: Input
|
|
1241
1283
|
}], noOverscroll: [{
|
|
1242
1284
|
type: Input
|
|
@@ -1428,7 +1470,7 @@ class ValueAccessorDecorator {
|
|
|
1428
1470
|
this.el.nativeElement.errors = ((_a = this.controlDirective) === null || _a === void 0 ? void 0 : _a.errors) || !!((_b = this.controlDirective) === null || _b === void 0 ? void 0 : _b.invalid);
|
|
1429
1471
|
}
|
|
1430
1472
|
}
|
|
1431
|
-
ValueAccessorDecorator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, deps: [{ token: i0.ElementRef }, { token: i1
|
|
1473
|
+
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 });
|
|
1432
1474
|
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 });
|
|
1433
1475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ValueAccessorDecorator, decorators: [{
|
|
1434
1476
|
type: Directive,
|
|
@@ -1440,11 +1482,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1440
1482
|
}
|
|
1441
1483
|
}]
|
|
1442
1484
|
}], ctorParameters: function () {
|
|
1443
|
-
return [{ type: i0.ElementRef }, { type: i1
|
|
1485
|
+
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
|
1444
1486
|
type: Self
|
|
1445
1487
|
}, {
|
|
1446
1488
|
type: Optional
|
|
1447
|
-
}] }, { type: i1
|
|
1489
|
+
}] }, { type: i1.ControlContainer, decorators: [{
|
|
1448
1490
|
type: Optional
|
|
1449
1491
|
}, {
|
|
1450
1492
|
type: Host
|
|
@@ -1585,14 +1627,14 @@ class CatDialogService {
|
|
|
1585
1627
|
this.dialog.closeAll();
|
|
1586
1628
|
}
|
|
1587
1629
|
}
|
|
1588
|
-
CatDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, deps: [{ token: i1.Dialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1630
|
+
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 });
|
|
1589
1631
|
CatDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, providedIn: 'root' });
|
|
1590
1632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatDialogService, decorators: [{
|
|
1591
1633
|
type: Injectable,
|
|
1592
1634
|
args: [{
|
|
1593
1635
|
providedIn: 'root'
|
|
1594
1636
|
}]
|
|
1595
|
-
}], ctorParameters: function () { return [{ type: i1.Dialog }]; } });
|
|
1637
|
+
}], ctorParameters: function () { return [{ type: i1$1.Dialog }]; } });
|
|
1596
1638
|
|
|
1597
1639
|
/**
|
|
1598
1640
|
* Generated bundle index. Do not edit.
|