@clr/angular 17.0.0-beta.1 → 17.0.0-beta.2
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/clarity.api.md +15 -27
- package/data/datagrid/datagrid.module.d.ts +36 -37
- package/data/datagrid/index.d.ts +0 -1
- package/data/datagrid/providers/items.d.ts +2 -11
- package/esm2020/button/button-group/button-group.mjs +9 -11
- package/esm2020/button/button-loading/loading-button.mjs +15 -5
- package/esm2020/data/datagrid/datagrid-column-toggle.mjs +3 -4
- package/esm2020/data/datagrid/datagrid-items.mjs +1 -2
- package/esm2020/data/datagrid/datagrid.mjs +3 -5
- package/esm2020/data/datagrid/datagrid.module.mjs +1 -5
- package/esm2020/data/datagrid/index.mjs +1 -2
- package/esm2020/data/datagrid/providers/items.mjs +3 -21
- package/esm2020/data/datagrid/providers/selection.mjs +16 -22
- package/esm2020/emphasis/alert/alert.mjs +2 -2
- package/esm2020/forms/common/wrapped-control.mjs +6 -4
- package/esm2020/forms/datepicker/date-input.mjs +10 -1
- package/fesm2015/clr-angular.mjs +60 -111
- package/fesm2015/clr-angular.mjs.map +1 -1
- package/fesm2020/clr-angular.mjs +58 -108
- package/fesm2020/clr-angular.mjs.map +1 -1
- package/forms/common/wrapped-control.d.ts +1 -1
- package/forms/datepicker/date-input.d.ts +1 -0
- package/package.json +2 -2
- package/data/datagrid/datagrid-items-trackby.d.ts +0 -10
- package/esm2020/data/datagrid/datagrid-items-trackby.mjs +0 -43
package/fesm2020/clr-angular.mjs
CHANGED
|
@@ -3804,16 +3804,14 @@ class ClrButtonGroup {
|
|
|
3804
3804
|
this.menuButtons = tempInMenuButtons;
|
|
3805
3805
|
}
|
|
3806
3806
|
handleFocusOnMenuOpen() {
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
this.
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
});
|
|
3816
|
-
}
|
|
3807
|
+
this.toggleService.popoverVisible.pipe(takeUntil(this.destroy$)).subscribe(visible => {
|
|
3808
|
+
if (visible) {
|
|
3809
|
+
this.focusHandler.initialize({
|
|
3810
|
+
menu: this.menu.nativeElement,
|
|
3811
|
+
menuToggle: this.menuToggle.nativeElement,
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
});
|
|
3817
3815
|
}
|
|
3818
3816
|
}
|
|
3819
3817
|
ClrButtonGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrButtonGroup, deps: [{ token: ButtonInGroupService }, { token: ClrPopoverToggleService }, { token: ClrCommonStringsService }, { token: ClrDestroyService }, { token: ButtonGroupFocusHandler }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3912,7 +3910,7 @@ class ClrLoadingButton {
|
|
|
3912
3910
|
}
|
|
3913
3911
|
ClrLoadingButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrLoadingButton, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3914
3912
|
ClrLoadingButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.2", type: ClrLoadingButton, selector: "button[clrLoading]", inputs: { disabled: "disabled" }, outputs: { clrLoadingChange: "clrLoadingChange" }, host: { properties: { "attr.disabled": "disabled? '' : null" } }, providers: [{ provide: LoadingListener, useExisting: ClrLoadingButton }], ngImport: i0, template: `
|
|
3915
|
-
<
|
|
3913
|
+
<div @parent [ngSwitch]="state">
|
|
3916
3914
|
<span *ngSwitchCase="buttonState.LOADING">
|
|
3917
3915
|
<span @spinner class="spinner spinner-inline"></span>
|
|
3918
3916
|
</span>
|
|
@@ -3926,8 +3924,13 @@ ClrLoadingButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
3926
3924
|
<span *ngSwitchCase="buttonState.DEFAULT" @defaultButton>
|
|
3927
3925
|
<ng-content></ng-content>
|
|
3928
3926
|
</span>
|
|
3929
|
-
</
|
|
3927
|
+
</div>
|
|
3930
3928
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i5.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], animations: [
|
|
3929
|
+
trigger('parent', [
|
|
3930
|
+
// Skip :enter animation on first render.
|
|
3931
|
+
// The button text/content should only be faded when transitioning to or from a non-default state.
|
|
3932
|
+
transition(':enter', []),
|
|
3933
|
+
]),
|
|
3931
3934
|
trigger('defaultButton', [
|
|
3932
3935
|
transition(':enter', [style({ opacity: 0 }), animate('200ms 100ms ease-in', style({ opacity: 1 }))]),
|
|
3933
3936
|
// TODO: see if we can get leave animation to work before spinner's enter animation
|
|
@@ -3955,7 +3958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
3955
3958
|
args: [{
|
|
3956
3959
|
selector: 'button[clrLoading]',
|
|
3957
3960
|
template: `
|
|
3958
|
-
<
|
|
3961
|
+
<div @parent [ngSwitch]="state">
|
|
3959
3962
|
<span *ngSwitchCase="buttonState.LOADING">
|
|
3960
3963
|
<span @spinner class="spinner spinner-inline"></span>
|
|
3961
3964
|
</span>
|
|
@@ -3969,10 +3972,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
3969
3972
|
<span *ngSwitchCase="buttonState.DEFAULT" @defaultButton>
|
|
3970
3973
|
<ng-content></ng-content>
|
|
3971
3974
|
</span>
|
|
3972
|
-
</
|
|
3975
|
+
</div>
|
|
3973
3976
|
`,
|
|
3974
3977
|
providers: [{ provide: LoadingListener, useExisting: ClrLoadingButton }],
|
|
3975
3978
|
animations: [
|
|
3979
|
+
trigger('parent', [
|
|
3980
|
+
// Skip :enter animation on first render.
|
|
3981
|
+
// The button text/content should only be faded when transitioning to or from a non-default state.
|
|
3982
|
+
transition(':enter', []),
|
|
3983
|
+
]),
|
|
3976
3984
|
trigger('defaultButton', [
|
|
3977
3985
|
transition(':enter', [style({ opacity: 0 }), animate('200ms 100ms ease-in', style({ opacity: 1 }))]),
|
|
3978
3986
|
// TODO: see if we can get leave animation to work before spinner's enter animation
|
|
@@ -4850,7 +4858,7 @@ class WrappedFormControl {
|
|
|
4850
4858
|
else {
|
|
4851
4859
|
this._id = this.controlIdService.id;
|
|
4852
4860
|
}
|
|
4853
|
-
if (this.ngControlService) {
|
|
4861
|
+
if (this.ngControlService && this.ngControl) {
|
|
4854
4862
|
this.ngControlService.setControl(this.ngControl);
|
|
4855
4863
|
}
|
|
4856
4864
|
}
|
|
@@ -4888,8 +4896,10 @@ class WrappedFormControl {
|
|
|
4888
4896
|
}
|
|
4889
4897
|
}
|
|
4890
4898
|
markAsTouched() {
|
|
4891
|
-
this.ngControl
|
|
4892
|
-
|
|
4899
|
+
if (this.ngControl) {
|
|
4900
|
+
this.ngControl.control.markAsTouched();
|
|
4901
|
+
this.ngControl.control.updateValueAndValidity();
|
|
4902
|
+
}
|
|
4893
4903
|
}
|
|
4894
4904
|
setAriaDescribedBy(helpers) {
|
|
4895
4905
|
if (helpers.show) {
|
|
@@ -9597,9 +9607,11 @@ class ClrDateInput extends WrappedFormControl {
|
|
|
9597
9607
|
}
|
|
9598
9608
|
set min(dateString) {
|
|
9599
9609
|
this.dateIOService.setMinDate(dateString);
|
|
9610
|
+
this.triggerControlValidation();
|
|
9600
9611
|
}
|
|
9601
9612
|
set max(dateString) {
|
|
9602
9613
|
this.dateIOService.setMaxDate(dateString);
|
|
9614
|
+
this.triggerControlValidation();
|
|
9603
9615
|
}
|
|
9604
9616
|
get disabled() {
|
|
9605
9617
|
if (this.dateFormControlService) {
|
|
@@ -9664,6 +9676,13 @@ class ClrDateInput extends WrappedFormControl {
|
|
|
9664
9676
|
this.focusService.focused = focus;
|
|
9665
9677
|
}
|
|
9666
9678
|
}
|
|
9679
|
+
triggerControlValidation() {
|
|
9680
|
+
if (this.datepickerHasFormControl()) {
|
|
9681
|
+
// Set `emitEvent` to false to prevent unnecessary value change event. Status change event will be emitted by `setErrors` below.
|
|
9682
|
+
this.control.control?.updateValueAndValidity({ emitEvent: false });
|
|
9683
|
+
this.control.control?.setErrors(this.control.control.errors);
|
|
9684
|
+
}
|
|
9685
|
+
}
|
|
9667
9686
|
populateServicesFromContainerComponent() {
|
|
9668
9687
|
if (!this.container) {
|
|
9669
9688
|
this.dateIOService = this.getProviderFromContainer(DateIOService);
|
|
@@ -13218,11 +13237,9 @@ class Items {
|
|
|
13218
13237
|
this._change = new Subject();
|
|
13219
13238
|
this._allChanges = new Subject();
|
|
13220
13239
|
/**
|
|
13221
|
-
* Tracking function to identify objects.
|
|
13222
|
-
*
|
|
13223
|
-
* @deprecated in v15 and scheduled for removal in v17 (CDE-71)
|
|
13240
|
+
* Tracking function to identify objects.
|
|
13224
13241
|
*/
|
|
13225
|
-
this.
|
|
13242
|
+
this.trackBy = item => item;
|
|
13226
13243
|
}
|
|
13227
13244
|
get smart() {
|
|
13228
13245
|
return this._smart;
|
|
@@ -13299,22 +13316,6 @@ class Items {
|
|
|
13299
13316
|
this._filterItems();
|
|
13300
13317
|
}
|
|
13301
13318
|
}
|
|
13302
|
-
canTrackBy() {
|
|
13303
|
-
// all items are needed unless `datagridTrackBy` is set because `iteratorTrackBy` requires the item's index
|
|
13304
|
-
return !!this.datagridTrackBy || Array.isArray(this.all);
|
|
13305
|
-
}
|
|
13306
|
-
trackBy(item, index) {
|
|
13307
|
-
if (this.datagridTrackBy) {
|
|
13308
|
-
return this.datagridTrackBy(item);
|
|
13309
|
-
}
|
|
13310
|
-
else if (Array.isArray(this.all)) {
|
|
13311
|
-
index = index ?? this.all.indexOf(item);
|
|
13312
|
-
return this.iteratorTrackBy(index, item);
|
|
13313
|
-
}
|
|
13314
|
-
else {
|
|
13315
|
-
throw new Error('improper call to Items#trackBy');
|
|
13316
|
-
}
|
|
13317
|
-
}
|
|
13318
13319
|
emitChange() {
|
|
13319
13320
|
this._change.next(this.displayed);
|
|
13320
13321
|
}
|
|
@@ -13397,7 +13398,6 @@ class ClrDatagridItems {
|
|
|
13397
13398
|
this._rawItems = items ? items : []; // local copy for ngOnChange diffing
|
|
13398
13399
|
}
|
|
13399
13400
|
set trackBy(value) {
|
|
13400
|
-
this.items.iteratorTrackBy = value;
|
|
13401
13401
|
this.iterableProxy.ngForTrackBy = value;
|
|
13402
13402
|
}
|
|
13403
13403
|
/**
|
|
@@ -13912,12 +13912,10 @@ class Selection {
|
|
|
13912
13912
|
let selectionUpdated = false;
|
|
13913
13913
|
// if the currentSingle has been set before data was loaded, we look up and save the ref from current data set
|
|
13914
13914
|
if (this.currentSingle && !this.prevSingleSelectionRef) {
|
|
13915
|
-
|
|
13916
|
-
this.prevSingleSelectionRef = this._items.trackBy(this.currentSingle);
|
|
13917
|
-
}
|
|
13915
|
+
this.prevSingleSelectionRef = this._items.trackBy(this.currentSingle);
|
|
13918
13916
|
}
|
|
13919
|
-
updatedItems.forEach(
|
|
13920
|
-
const ref = this._items.trackBy(item
|
|
13917
|
+
updatedItems.forEach(item => {
|
|
13918
|
+
const ref = this._items.trackBy(item);
|
|
13921
13919
|
// If one of the updated items is the previously selectedSingle, set it as the new one
|
|
13922
13920
|
if (this.prevSingleSelectionRef === ref) {
|
|
13923
13921
|
newSingle = item;
|
|
@@ -13950,20 +13948,18 @@ class Selection {
|
|
|
13950
13948
|
let selectionUpdated = false;
|
|
13951
13949
|
// if the current has been set before data was loaded, we look up and save the ref from current data set
|
|
13952
13950
|
if (this.current.length > 0 && this.prevSelectionRefs.length !== this.current.length) {
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
this.
|
|
13956
|
-
|
|
13957
|
-
});
|
|
13958
|
-
}
|
|
13951
|
+
this.prevSelectionRefs = [];
|
|
13952
|
+
this.current.forEach(item => {
|
|
13953
|
+
this.prevSelectionRefs.push(this._items.trackBy(item));
|
|
13954
|
+
});
|
|
13959
13955
|
}
|
|
13960
13956
|
// Duplicate loop, when the issue is issue#2342 is revisited keep in mind that
|
|
13961
13957
|
// we need to go over every updated item and check to see if there are valid to be
|
|
13962
13958
|
// locked or not and update it. When only add items that are found in the lockedRefs back.
|
|
13963
13959
|
//
|
|
13964
13960
|
// The both loops below that goes over updatedItems could be combined into one.
|
|
13965
|
-
updatedItems.forEach(
|
|
13966
|
-
const ref = this._items.trackBy(item
|
|
13961
|
+
updatedItems.forEach(item => {
|
|
13962
|
+
const ref = this._items.trackBy(item);
|
|
13967
13963
|
if (this.lockedRefs.indexOf(ref) > -1) {
|
|
13968
13964
|
updateLockedRef.push(ref);
|
|
13969
13965
|
}
|
|
@@ -13972,8 +13968,8 @@ class Selection {
|
|
|
13972
13968
|
// currently, the selection is cleared when filter is applied, so the logic inside
|
|
13973
13969
|
// the if statement below results in broken behavior.
|
|
13974
13970
|
if (leftOver.length > 0) {
|
|
13975
|
-
updatedItems.forEach(
|
|
13976
|
-
const ref = this._items.trackBy(item
|
|
13971
|
+
updatedItems.forEach(item => {
|
|
13972
|
+
const ref = this._items.trackBy(item);
|
|
13977
13973
|
// Look in current selected refs array if item is selected, and update actual value
|
|
13978
13974
|
const selectedIndex = this.prevSelectionRefs.indexOf(ref);
|
|
13979
13975
|
if (selectedIndex > -1) {
|
|
@@ -14039,7 +14035,7 @@ class Selection {
|
|
|
14039
14035
|
return;
|
|
14040
14036
|
}
|
|
14041
14037
|
this._currentSingle = value;
|
|
14042
|
-
if (
|
|
14038
|
+
if (value) {
|
|
14043
14039
|
this.prevSingleSelectionRef = this._items.trackBy(value);
|
|
14044
14040
|
}
|
|
14045
14041
|
this.emitChange();
|
|
@@ -14185,10 +14181,8 @@ class Selection {
|
|
|
14185
14181
|
*/
|
|
14186
14182
|
selectItem(item) {
|
|
14187
14183
|
this.current = this.current.concat(item);
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
this.prevSelectionRefs.push(this._items.trackBy(item));
|
|
14191
|
-
}
|
|
14184
|
+
// Push selected ref onto array
|
|
14185
|
+
this.prevSelectionRefs.push(this._items.trackBy(item));
|
|
14192
14186
|
}
|
|
14193
14187
|
/**
|
|
14194
14188
|
* Deselects an item
|
|
@@ -14206,7 +14200,7 @@ class Selection {
|
|
|
14206
14200
|
* Make sure that it could be locked
|
|
14207
14201
|
*/
|
|
14208
14202
|
canItBeLocked() {
|
|
14209
|
-
return this._selectionType !== SelectionType.None
|
|
14203
|
+
return this._selectionType !== SelectionType.None;
|
|
14210
14204
|
}
|
|
14211
14205
|
emitChange() {
|
|
14212
14206
|
if (this._selectionType === SelectionType.Single) {
|
|
@@ -14988,7 +14982,7 @@ class ClrDatagrid {
|
|
|
14988
14982
|
this.selection.rowSelectionMode = value;
|
|
14989
14983
|
}
|
|
14990
14984
|
set trackBy(value) {
|
|
14991
|
-
this.items.
|
|
14985
|
+
this.items.trackBy = value;
|
|
14992
14986
|
}
|
|
14993
14987
|
/**
|
|
14994
14988
|
* Indicates if all currently displayed items are selected
|
|
@@ -15030,9 +15024,7 @@ class ClrDatagrid {
|
|
|
15030
15024
|
});
|
|
15031
15025
|
// Try to update only when there is something cached and its open.
|
|
15032
15026
|
if (this.detailService.state && this.detailService.isOpen) {
|
|
15033
|
-
const row = this.items.
|
|
15034
|
-
? this.rows.find(row => this.items.trackBy(row.item) === this.items.trackBy(this.detailService.state))
|
|
15035
|
-
: undefined;
|
|
15027
|
+
const row = this.rows.find(row => this.items.trackBy(row.item) === this.items.trackBy(this.detailService.state));
|
|
15036
15028
|
/**
|
|
15037
15029
|
* Reopen updated row or close it
|
|
15038
15030
|
*/
|
|
@@ -15415,45 +15407,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
15415
15407
|
*/
|
|
15416
15408
|
const columnToggleTrackByFn = index => index;
|
|
15417
15409
|
|
|
15418
|
-
/*
|
|
15419
|
-
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
|
|
15420
|
-
* This software is released under MIT license.
|
|
15421
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
15422
|
-
*/
|
|
15423
|
-
class ClrDatagridItemsTrackBy {
|
|
15424
|
-
constructor(_items) {
|
|
15425
|
-
this._items = _items;
|
|
15426
|
-
}
|
|
15427
|
-
set trackBy(value) {
|
|
15428
|
-
/**
|
|
15429
|
-
* This is a workaround to prevent the items `trackBy` function from
|
|
15430
|
-
* being replaced when the "manage columns" button is clicked. This is
|
|
15431
|
-
* not a complete solution. If there is another `ngForTrackBy` function
|
|
15432
|
-
* within the datagrid in application code, it could sill replace the
|
|
15433
|
-
* items `trackBy` function whether it is the row iterator or not.
|
|
15434
|
-
*/
|
|
15435
|
-
if (value === columnToggleTrackByFn) {
|
|
15436
|
-
return;
|
|
15437
|
-
}
|
|
15438
|
-
if (this._items) {
|
|
15439
|
-
this._items.iteratorTrackBy = value;
|
|
15440
|
-
}
|
|
15441
|
-
}
|
|
15442
|
-
}
|
|
15443
|
-
ClrDatagridItemsTrackBy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrDatagridItemsTrackBy, deps: [{ token: Items, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15444
|
-
ClrDatagridItemsTrackBy.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.2", type: ClrDatagridItemsTrackBy, selector: "[ngForTrackBy]", inputs: { trackBy: ["ngForTrackBy", "trackBy"] }, ngImport: i0 });
|
|
15445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrDatagridItemsTrackBy, decorators: [{
|
|
15446
|
-
type: Directive,
|
|
15447
|
-
args: [{
|
|
15448
|
-
selector: '[ngForTrackBy]',
|
|
15449
|
-
}]
|
|
15450
|
-
}], ctorParameters: function () { return [{ type: Items, decorators: [{
|
|
15451
|
-
type: Optional
|
|
15452
|
-
}] }]; }, propDecorators: { trackBy: [{
|
|
15453
|
-
type: Input,
|
|
15454
|
-
args: ['ngForTrackBy']
|
|
15455
|
-
}] } });
|
|
15456
|
-
|
|
15457
15410
|
/*
|
|
15458
15411
|
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
|
|
15459
15412
|
* This software is released under MIT license.
|
|
@@ -15622,7 +15575,7 @@ ClrDatagridColumnToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
15622
15575
|
<clr-dg-column-toggle-button (clrAllSelected)="allColumnsSelected()"></clr-dg-column-toggle-button>
|
|
15623
15576
|
</div>
|
|
15624
15577
|
</div>
|
|
15625
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "directive", type: CdsIconCustomTag, selector: "cds-icon" }, { kind: "directive", type: ClrLabel, selector: "label", inputs: ["for"] }, { kind: "directive", type: ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { kind: "component", type: ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ClrPopoverAnchor, selector: "[clrPopoverAnchor]" }, { kind: "directive", type: ClrPopoverCloseButton, selector: "[clrPopoverCloseButton]", outputs: ["clrPopoverOnCloseChange"] }, { kind: "directive", type: ClrPopoverOpenCloseButton, selector: "[clrPopoverOpenCloseButton]", outputs: ["clrPopoverOpenCloseChange"] }, { kind: "directive", type: ClrPopoverContent, selector: "[clrPopoverContent]", inputs: ["clrPopoverContent", "clrPopoverContentAt", "clrPopoverContentOutsideClickToClose", "clrPopoverContentScrollToClose"] }, { kind: "
|
|
15578
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "directive", type: CdsIconCustomTag, selector: "cds-icon" }, { kind: "directive", type: ClrLabel, selector: "label", inputs: ["for"] }, { kind: "directive", type: ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { kind: "component", type: ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ClrPopoverAnchor, selector: "[clrPopoverAnchor]" }, { kind: "directive", type: ClrPopoverCloseButton, selector: "[clrPopoverCloseButton]", outputs: ["clrPopoverOnCloseChange"] }, { kind: "directive", type: ClrPopoverOpenCloseButton, selector: "[clrPopoverOpenCloseButton]", outputs: ["clrPopoverOpenCloseChange"] }, { kind: "directive", type: ClrPopoverContent, selector: "[clrPopoverContent]", inputs: ["clrPopoverContent", "clrPopoverContentAt", "clrPopoverContentOutsideClickToClose", "clrPopoverContentScrollToClose"] }, { kind: "component", type: ClrDatagridColumnToggleButton, selector: "clr-dg-column-toggle-button", outputs: ["clrAllSelected"] }] });
|
|
15626
15579
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrDatagridColumnToggle, decorators: [{
|
|
15627
15580
|
type: Component,
|
|
15628
15581
|
args: [{
|
|
@@ -17139,7 +17092,6 @@ const CLR_DATAGRID_DIRECTIVES = [
|
|
|
17139
17092
|
ClrDatagridFooter,
|
|
17140
17093
|
ClrDatagridHideableColumn,
|
|
17141
17094
|
ClrDatagridItems,
|
|
17142
|
-
ClrDatagridItemsTrackBy,
|
|
17143
17095
|
ClrDatagridPageSize,
|
|
17144
17096
|
ClrDatagridPagination,
|
|
17145
17097
|
ClrDatagridPlaceholder,
|
|
@@ -17186,7 +17138,6 @@ ClrDatagridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
|
17186
17138
|
ClrDatagridFooter,
|
|
17187
17139
|
ClrDatagridHideableColumn,
|
|
17188
17140
|
ClrDatagridItems,
|
|
17189
|
-
ClrDatagridItemsTrackBy,
|
|
17190
17141
|
ClrDatagridPageSize,
|
|
17191
17142
|
ClrDatagridPagination,
|
|
17192
17143
|
ClrDatagridPlaceholder,
|
|
@@ -17236,7 +17187,6 @@ ClrDatagridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
|
17236
17187
|
ClrDatagridFooter,
|
|
17237
17188
|
ClrDatagridHideableColumn,
|
|
17238
17189
|
ClrDatagridItems,
|
|
17239
|
-
ClrDatagridItemsTrackBy,
|
|
17240
17190
|
ClrDatagridPageSize,
|
|
17241
17191
|
ClrDatagridPagination,
|
|
17242
17192
|
ClrDatagridPlaceholder,
|
|
@@ -19979,7 +19929,7 @@ class ClrAlert {
|
|
|
19979
19929
|
}
|
|
19980
19930
|
const isCurrentAlert = this.multiAlertService?.currentAlert === this;
|
|
19981
19931
|
this._closed = true;
|
|
19982
|
-
if (this.multiAlertService) {
|
|
19932
|
+
if (this.multiAlertService?.activeAlerts) {
|
|
19983
19933
|
this.multiAlertService.close(isCurrentAlert);
|
|
19984
19934
|
}
|
|
19985
19935
|
this._closedChanged.emit(true);
|
|
@@ -26401,5 +26351,5 @@ const CLR_MENU_POSITIONS = [
|
|
|
26401
26351
|
* Generated bundle index. Do not edit.
|
|
26402
26352
|
*/
|
|
26403
26353
|
|
|
26404
|
-
export { CHANGE_KEYS, CLR_ALERT_DIRECTIVES, CLR_BUTTON_GROUP_DIRECTIVES, CLR_DATAGRID_DIRECTIVES, CLR_DATEPICKER_DIRECTIVES, CLR_DROPDOWN_DIRECTIVES, CLR_ICON_DIRECTIVES, CLR_LAYOUT_DIRECTIVES, CLR_LOADING_BUTTON_DIRECTIVES, CLR_LOADING_DIRECTIVES, CLR_MENU_POSITIONS, CLR_MODAL_DIRECTIVES, CLR_NAVIGATION_DIRECTIVES, CLR_PROGRESS_BAR_DIRECTIVES, CLR_SIGNPOST_DIRECTIVES, CLR_SPINNER_DIRECTIVES, CLR_STACK_VIEW_DIRECTIVES, CLR_TABS_DIRECTIVES, CLR_TOOLTIP_DIRECTIVES, CLR_TREE_VIEW_DIRECTIVES, CLR_VERTICAL_NAV_DIRECTIVES, CLR_WIZARD_DIRECTIVES, CONDITIONAL_DIRECTIVES, CUSTOM_BUTTON_TYPES, CdsIconCustomTag, ClarityModule, ClrAbstractContainer, ClrAccordion, ClrAccordionContent, ClrAccordionDescription, ClrAccordionModule, ClrAccordionPanel, ClrAccordionTitle, ClrAlert, ClrAlertItem, ClrAlertModule, ClrAlertText, ClrAlerts, ClrAlertsPager, ClrAlignment, ClrAriaCurrentLink, ClrAxis, ClrButton, ClrButtonGroup, ClrButtonGroupModule, ClrButtonModule, ClrCalendar, ClrCheckbox, ClrCheckboxContainer, ClrCheckboxModule, ClrCheckboxWrapper, ClrCombobox, ClrComboboxContainer, ClrComboboxModule, ClrCommonFormsModule, ClrCommonStringsService, ClrConditionalModule, ClrControl, ClrControlContainer, ClrControlError, ClrControlHelper, ClrControlSuccess, ClrDataModule, ClrDatagrid, ClrDatagridActionBar, ClrDatagridActionOverflow, ClrDatagridCell, ClrDatagridColumn, ClrDatagridColumnSeparator, ClrDatagridColumnToggle, ClrDatagridColumnToggleButton, ClrDatagridDetail, ClrDatagridDetailBody, ClrDatagridDetailHeader, ClrDatagridFilter, ClrDatagridFooter, ClrDatagridHideableColumn, ClrDatagridItems,
|
|
26354
|
+
export { CHANGE_KEYS, CLR_ALERT_DIRECTIVES, CLR_BUTTON_GROUP_DIRECTIVES, CLR_DATAGRID_DIRECTIVES, CLR_DATEPICKER_DIRECTIVES, CLR_DROPDOWN_DIRECTIVES, CLR_ICON_DIRECTIVES, CLR_LAYOUT_DIRECTIVES, CLR_LOADING_BUTTON_DIRECTIVES, CLR_LOADING_DIRECTIVES, CLR_MENU_POSITIONS, CLR_MODAL_DIRECTIVES, CLR_NAVIGATION_DIRECTIVES, CLR_PROGRESS_BAR_DIRECTIVES, CLR_SIGNPOST_DIRECTIVES, CLR_SPINNER_DIRECTIVES, CLR_STACK_VIEW_DIRECTIVES, CLR_TABS_DIRECTIVES, CLR_TOOLTIP_DIRECTIVES, CLR_TREE_VIEW_DIRECTIVES, CLR_VERTICAL_NAV_DIRECTIVES, CLR_WIZARD_DIRECTIVES, CONDITIONAL_DIRECTIVES, CUSTOM_BUTTON_TYPES, CdsIconCustomTag, ClarityModule, ClrAbstractContainer, ClrAccordion, ClrAccordionContent, ClrAccordionDescription, ClrAccordionModule, ClrAccordionPanel, ClrAccordionTitle, ClrAlert, ClrAlertItem, ClrAlertModule, ClrAlertText, ClrAlerts, ClrAlertsPager, ClrAlignment, ClrAriaCurrentLink, ClrAxis, ClrButton, ClrButtonGroup, ClrButtonGroupModule, ClrButtonModule, ClrCalendar, ClrCheckbox, ClrCheckboxContainer, ClrCheckboxModule, ClrCheckboxWrapper, ClrCombobox, ClrComboboxContainer, ClrComboboxModule, ClrCommonFormsModule, ClrCommonStringsService, ClrConditionalModule, ClrControl, ClrControlContainer, ClrControlError, ClrControlHelper, ClrControlSuccess, ClrDataModule, ClrDatagrid, ClrDatagridActionBar, ClrDatagridActionOverflow, ClrDatagridCell, ClrDatagridColumn, ClrDatagridColumnSeparator, ClrDatagridColumnToggle, ClrDatagridColumnToggleButton, ClrDatagridDetail, ClrDatagridDetailBody, ClrDatagridDetailHeader, ClrDatagridFilter, ClrDatagridFooter, ClrDatagridHideableColumn, ClrDatagridItems, ClrDatagridModule, ClrDatagridPageSize, ClrDatagridPagination, ClrDatagridPlaceholder, ClrDatagridRow, ClrDatagridRowDetail, ClrDatagridSortOrder, ClrDatalist, ClrDatalistContainer, ClrDatalistInput, ClrDatalistModule, ClrDateContainer, ClrDateInput, ClrDateInputValidator, ClrDatepickerModule, ClrDatepickerViewManager, ClrDay, ClrDaypicker, ClrDestroyService, ClrDropdown, ClrDropdownItem, ClrDropdownMenu, ClrDropdownModule, ClrDropdownTrigger, ClrEmphasisModule, ClrExpandableAnimation, ClrFocusOnViewInit, ClrFocusOnViewInitModule, ClrForm, ClrFormLayout, ClrFormsModule, ClrHeader, ClrIconCustomTag, ClrIconModule, ClrIfActive, ClrIfDetail, ClrIfError, ClrIfExpanded, ClrIfOpen, ClrIfSuccess, ClrInput, ClrInputContainer, ClrInputModule, ClrLabel, ClrLayout, ClrLayoutModule, ClrLoading, ClrLoadingButton, ClrLoadingButtonModule, ClrLoadingModule, ClrLoadingState, ClrMainContainer, ClrMainContainerModule, ClrModal, ClrModalBody, ClrModalModule, ClrMonthpicker, ClrNavLevel, ClrNavigationModule, ClrOption, ClrOptionItems, ClrOptionSelected, ClrOptions, ClrPassword, ClrPasswordContainer, ClrPasswordModule, ClrPopoverAnchor, ClrPopoverContent, ClrPopoverEventsService, ClrPopoverHostDirective, ClrPopoverModule, ClrPopoverPositionService, ClrPopoverToggleService, ClrProgressBar, ClrProgressBarModule, ClrRadio, ClrRadioContainer, ClrRadioModule, ClrRadioWrapper, ClrRange, ClrRangeContainer, ClrRangeModule, ClrRecursiveForOf, ClrSelect, ClrSelectContainer, ClrSelectModule, ClrSelectedState, ClrSide, ClrSignpost, ClrSignpostContent, ClrSignpostModule, ClrSignpostTrigger, ClrSpinner, ClrSpinnerModule, ClrStackBlock, ClrStackContentInput, ClrStackHeader, ClrStackView, ClrStackViewCustomTags, ClrStackViewLabel, ClrStackViewModule, ClrStandaloneCdkTrapFocus, ClrStepButton, ClrStepButtonType, ClrStepper, ClrStepperModule, ClrStepperPanel, ClrStopEscapePropagationDirective, ClrTab, ClrTabContent, ClrTabLink, ClrTabOverflowContent, ClrTabs, ClrTabsModule, ClrTextarea, ClrTextareaContainer, ClrTextareaModule, ClrTimeline, ClrTimelineLayout, ClrTimelineModule, ClrTimelineStep, ClrTimelineStepDescription, ClrTimelineStepHeader, ClrTimelineStepState, ClrTimelineStepTitle, ClrTooltip, ClrTooltipContent, ClrTooltipModule, ClrTooltipTrigger, ClrTree, ClrTreeNode, ClrTreeNodeLink, ClrTreeViewModule, ClrVerticalNav, ClrVerticalNavGroup, ClrVerticalNavGroupChildren, ClrVerticalNavIcon, ClrVerticalNavLink, ClrVerticalNavModule, ClrWizard, ClrWizardButton, ClrWizardHeaderAction, ClrWizardModule, ClrWizardPage, ClrWizardPageButtons, ClrWizardPageHeaderActions, ClrWizardPageNavTitle, ClrWizardPageTitle, ClrWizardStepnav, ClrWizardStepnavItem, ClrWizardTitle, ClrYearpicker, DEFAULT_BUTTON_TYPES, DatagridNumericFilter, DatagridPropertyComparator, DatagridPropertyNumericFilter, DatagridPropertyStringFilter, DatagridStringFilter, EXPANDABLE_ANIMATION_DIRECTIVES, FOCUS_ON_VIEW_INIT, FOCUS_ON_VIEW_INIT_DIRECTIVES, IS_TOGGLE, IS_TOGGLE_PROVIDER, LoadingListener, MainContainerWillyWonka, NavDetectionOompaLoompa, TOGGLE_SERVICE, TOGGLE_SERVICE_PROVIDER, ToggleServiceFactory, WrappedFormControl, collapse, commonStringsDefault, fade, fadeSlide, isToggleFactory, slide, AccordionOompaLoompa as ÇlrAccordionOompaLoompa, AccordionWillyWonka as ÇlrAccordionWillyWonka, ActionableOompaLoompa as ÇlrActionableOompaLoompa, ActiveOompaLoompa as ÇlrActiveOompaLoompa, ClrPopoverCloseButton as ÇlrClrPopoverCloseButton, ClrPopoverModuleNext as ÇlrClrPopoverModuleNext, ClrPopoverOpenCloseButton as ÇlrClrPopoverOpenCloseButton, DatagridCellRenderer as ÇlrDatagridCellRenderer, DatagridDetailRegisterer as ÇlrDatagridDetailRegisterer, DatagridHeaderRenderer as ÇlrDatagridHeaderRenderer, DatagridMainRenderer as ÇlrDatagridMainRenderer, DatagridRowRenderer as ÇlrDatagridRowRenderer, ClrDatagridSelectionCellDirective as ÇlrDatagridSelectionCellDirective, DatagridWillyWonka as ÇlrDatagridWillyWonka, ExpandableOompaLoompa as ÇlrExpandableOompaLoompa, StepperOompaLoompa as ÇlrStepperOompaLoompa, StepperWillyWonka as ÇlrStepperWillyWonka, TabsWillyWonka as ÇlrTabsWillyWonka, WrappedCell as ÇlrWrappedCell, WrappedColumn as ÇlrWrappedColumn, WrappedRow as ÇlrWrappedRow };
|
|
26405
26355
|
//# sourceMappingURL=clr-angular.mjs.map
|