@clr/angular 18.0.0-beta.1 → 18.0.0-beta.11
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/fesm2022/clr-angular-accordion.mjs +1 -1
- package/fesm2022/clr-angular-accordion.mjs.map +1 -1
- package/fesm2022/clr-angular-button.mjs +6 -6
- package/fesm2022/clr-angular-button.mjs.map +1 -1
- package/fesm2022/clr-angular-data-datagrid.mjs +45 -35
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-data-tree-view.mjs +3 -3
- package/fesm2022/clr-angular-data-tree-view.mjs.map +1 -1
- package/fesm2022/clr-angular-data.mjs +11 -9116
- package/fesm2022/clr-angular-data.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis-alert.mjs +2 -2
- package/fesm2022/clr-angular-emphasis-alert.mjs.map +1 -1
- package/fesm2022/clr-angular-emphasis.mjs +12 -778
- package/fesm2022/clr-angular-emphasis.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-checkbox.mjs +13 -44
- package/fesm2022/clr-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-combobox.mjs +420 -90
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-common.mjs +62 -57
- package/fesm2022/clr-angular-forms-common.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datalist.mjs +2 -14
- package/fesm2022/clr-angular-forms-datalist.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datepicker.mjs +20 -28
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-file-input.mjs +78 -62
- package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-input.mjs +4 -18
- package/fesm2022/clr-angular-forms-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-number-input.mjs +2 -14
- package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-password.mjs +2 -14
- package/fesm2022/clr-angular-forms-password.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-radio.mjs +13 -44
- package/fesm2022/clr-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-range.mjs +3 -16
- package/fesm2022/clr-angular-forms-range.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-select.mjs +3 -16
- package/fesm2022/clr-angular-forms-select.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-textarea.mjs +4 -17
- package/fesm2022/clr-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/clr-angular-forms.mjs +68 -8560
- package/fesm2022/clr-angular-forms.mjs.map +1 -1
- package/fesm2022/clr-angular-icon.mjs +10 -0
- package/fesm2022/clr-angular-icon.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-nav.mjs +27 -25
- package/fesm2022/clr-angular-layout-nav.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-tabs.mjs +1 -1
- package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -1
- package/fesm2022/clr-angular-layout.mjs +15 -2057
- package/fesm2022/clr-angular-layout.mjs.map +1 -1
- package/fesm2022/clr-angular-modal.mjs +4 -5
- package/fesm2022/clr-angular-modal.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-common.mjs +151 -85
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-dropdown.mjs +7 -4
- package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-signpost.mjs +30 -15
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-tooltip.mjs +7 -7
- package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -1
- package/fesm2022/clr-angular-popover.mjs +12 -2242
- package/fesm2022/clr-angular-popover.mjs.map +1 -1
- package/fesm2022/clr-angular-stepper.mjs +5 -5
- package/fesm2022/clr-angular-stepper.mjs.map +1 -1
- package/fesm2022/clr-angular-utils.mjs +20 -485
- package/fesm2022/clr-angular-utils.mjs.map +1 -1
- package/fesm2022/clr-angular-wizard.mjs +434 -223
- package/fesm2022/clr-angular-wizard.mjs.map +1 -1
- package/fesm2022/clr-angular.mjs +94 -38740
- package/fesm2022/clr-angular.mjs.map +1 -1
- package/package.json +10 -5
- package/popover/common/README.md +14 -12
- package/schematics/collection.json +14 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +69 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/css-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/css-migration.js +177 -0
- package/schematics/ng-update/migrations/css-migration.js.map +1 -0
- package/schematics/ng-update/migrations/import-migration.d.ts +4 -0
- package/schematics/ng-update/migrations/import-migration.js +187 -0
- package/schematics/ng-update/migrations/import-migration.js.map +1 -0
- package/schematics/ng-update/migrations/template-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/template-migration.js +261 -0
- package/schematics/ng-update/migrations/template-migration.js.map +1 -0
- package/schematics/ng-update/replacements/css-replacements.d.ts +17 -0
- package/schematics/ng-update/replacements/css-replacements.js +74 -0
- package/schematics/ng-update/replacements/css-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/import-replacements.d.ts +13 -0
- package/schematics/ng-update/replacements/import-replacements.js +108 -0
- package/schematics/ng-update/replacements/import-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/symbol-replacements.d.ts +12 -0
- package/schematics/ng-update/replacements/symbol-replacements.js +67 -0
- package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/template-replacements.d.ts +19 -0
- package/schematics/ng-update/replacements/template-replacements.js +57 -0
- package/schematics/ng-update/replacements/template-replacements.js.map +1 -0
- package/schematics/ng-update/tests/test-helpers.d.ts +6 -0
- package/schematics/ng-update/tests/test-helpers.js +34 -0
- package/schematics/ng-update/tests/test-helpers.js.map +1 -0
- package/schematics/ng-update/utils/file-visitor.d.ts +8 -0
- package/schematics/ng-update/utils/file-visitor.js +44 -0
- package/schematics/ng-update/utils/file-visitor.js.map +1 -0
- package/schematics/ng-update/utils/regexp-utils.d.ts +16 -0
- package/schematics/ng-update/utils/regexp-utils.js +34 -0
- package/schematics/ng-update/utils/regexp-utils.js.map +1 -0
- package/schematics/vitest.config.d.ts +2 -0
- package/schematics/vitest.config.js +17 -0
- package/schematics/vitest.config.js.map +1 -0
- package/types/clr-angular-accordion.d.ts +1 -1
- package/types/clr-angular-button.d.ts +1 -1
- package/types/clr-angular-data-datagrid.d.ts +23 -33
- package/types/clr-angular-data-tree-view.d.ts +10 -1
- package/types/clr-angular-data.d.ts +4 -2136
- package/types/clr-angular-emphasis.d.ts +4 -220
- package/types/clr-angular-forms-combobox.d.ts +64 -11
- package/types/clr-angular-forms-common.d.ts +9 -9
- package/types/clr-angular-forms-datepicker.d.ts +8 -1
- package/types/clr-angular-forms-file-input.d.ts +6 -3
- package/types/clr-angular-forms.d.ts +26 -2062
- package/types/clr-angular-layout-nav.d.ts +6 -2
- package/types/clr-angular-layout-tabs.d.ts +1 -1
- package/types/clr-angular-layout.d.ts +6 -463
- package/types/clr-angular-popover-common.d.ts +38 -13
- package/types/clr-angular-popover-dropdown.d.ts +2 -1
- package/types/clr-angular-popover-signpost.d.ts +15 -7
- package/types/clr-angular-popover-tooltip.d.ts +1 -1
- package/types/clr-angular-popover.d.ts +7 -559
- package/types/clr-angular-stepper.d.ts +1 -1
- package/types/clr-angular-utils.d.ts +13 -175
- package/types/clr-angular-wizard.d.ts +92 -35
- package/types/clr-angular.d.ts +22 -10238
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Directive, ViewChild, Component, PLATFORM_ID, Inject, DOCUMENT, EventEmitter, ElementRef, booleanAttribute, Input, Output, Optional, ContentChild, ChangeDetectionStrategy, ContentChildren, forwardRef, HostListener, ViewContainerRef, runInInjectionContext, Injector, ChangeDetectorRef, NgZone, Renderer2, inject, EnvironmentInjector, TemplateRef, IterableDiffers, ViewChildren, InjectionToken, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@clr/angular/utils';
|
|
4
|
-
import { uniqueIdFactory,
|
|
4
|
+
import { uniqueIdFactory, Keys, HostWrapper, IfExpandService, ClrLoadingState, ClrExpandableAnimationDirective, LoadingListener, WillyWonka, OompaLoompa, ClrKeyFocus, DomAdapter, ClrIfExpanded, CdkDragModule, CdkTrapFocusModule, ClrLoadingModule, ClrConditionalModule, ClrOutsideClickModule, ClrExpandableAnimationModule, ClrKeyFocusModule } from '@clr/angular/utils';
|
|
5
5
|
import * as i2$2 from 'rxjs';
|
|
6
6
|
import { Subject, BehaviorSubject, fromEvent, ReplaySubject, combineLatest, merge, of } from 'rxjs';
|
|
7
7
|
import { filter, takeUntil, delay, debounceTime, map, switchMap } from 'rxjs/operators';
|
|
8
8
|
import * as i3 from '@clr/angular/popover/common';
|
|
9
|
-
import { ClrPopoverPosition, ClrPopoverType, ClrPopoverHostDirective, mapPopoverKeyToPosition,
|
|
9
|
+
import { ClrPopoverPosition, ClrPopoverType, ClrPopoverHostDirective, mapPopoverKeyToPosition, ClrPopoverModuleNext } from '@clr/angular/popover/common';
|
|
10
10
|
import * as i1 from '@clr/angular/modal';
|
|
11
11
|
import * as i9 from '@angular/common';
|
|
12
12
|
import { isPlatformBrowser, NgForOf, CommonModule } from '@angular/common';
|
|
13
13
|
import * as i5 from '@clr/angular/icon';
|
|
14
|
-
import { ClarityIcons, ellipsisVerticalIcon, viewColumnsIcon, windowCloseIcon, arrowIcon, timesIcon, stepForward2Icon, angleDoubleIcon, filterGridCircleIcon, filterGridIcon, ClrIcon } from '@clr/angular/icon';
|
|
14
|
+
import { ClarityIcons, ellipsisVerticalIcon, viewColumnsIcon, windowCloseIcon, arrowIcon, timesIcon, twoWayArrowsIcon, stepForward2Icon, angleDoubleIcon, filterGridCircleIcon, filterGridIcon, ClrIcon } from '@clr/angular/icon';
|
|
15
15
|
import * as i4 from '@clr/angular/forms/common';
|
|
16
16
|
import { ClrControlLabel } from '@clr/angular/forms/common';
|
|
17
17
|
import * as i5$1 from '@clr/angular/forms/number-input';
|
|
@@ -382,10 +382,6 @@ class CustomFilter {
|
|
|
382
382
|
* This software is released under MIT license.
|
|
383
383
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
384
384
|
*/
|
|
385
|
-
// @TODO The top two are not used now, which is probably a performance drag that was broken along the way.
|
|
386
|
-
// There was a previous pattern to hide everything to do computation then display, for Firefox, needs revisiting.
|
|
387
|
-
const NO_LAYOUT_CLASS = 'datagrid-no-layout';
|
|
388
|
-
const COMPUTE_WIDTH_CLASS = 'datagrid-computing-columns-width';
|
|
389
385
|
const STRICT_WIDTH_CLASS = 'datagrid-fixed-width';
|
|
390
386
|
const HIDDEN_COLUMN_CLASS = 'datagrid-hidden-column';
|
|
391
387
|
|
|
@@ -1162,10 +1158,10 @@ class ClrDatagridColumnSeparator {
|
|
|
1162
1158
|
}
|
|
1163
1159
|
}
|
|
1164
1160
|
isArrowLeftKeyEvent(event) {
|
|
1165
|
-
return
|
|
1161
|
+
return event.key === Keys.ArrowLeft;
|
|
1166
1162
|
}
|
|
1167
1163
|
isArrowRightKeyEvent(event) {
|
|
1168
|
-
return
|
|
1164
|
+
return event.key === Keys.ArrowRight;
|
|
1169
1165
|
}
|
|
1170
1166
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridColumnSeparator, deps: [{ token: ColumnResizerService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: TableSizeService }, { token: i2.ClrCommonStringsService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1171
1167
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: ClrDatagridColumnSeparator, isStandalone: false, selector: "clr-dg-column-separator", host: { properties: { "class.datagrid-column-separator": "true" } }, viewQueries: [{ propertyName: "resizeTrackerRef", first: true, predicate: ["resizeTracker"], descendants: true }, { propertyName: "columnHandleRef", first: true, predicate: ["columnHandle"], descendants: true }], ngImport: i0, template: `
|
|
@@ -1977,7 +1973,7 @@ class ClrDatagridFilter extends DatagridFilterRegistrar {
|
|
|
1977
1973
|
#anchor
|
|
1978
1974
|
[attr.aria-expanded]="ariaExpanded"
|
|
1979
1975
|
[attr.aria-controls]="popoverId"
|
|
1980
|
-
|
|
1976
|
+
clrPopoverOrigin
|
|
1981
1977
|
clrPopoverOpenCloseButton
|
|
1982
1978
|
[class.datagrid-filter-open]="open"
|
|
1983
1979
|
[class.datagrid-filtered]="active"
|
|
@@ -2005,7 +2001,7 @@ class ClrDatagridFilter extends DatagridFilterRegistrar {
|
|
|
2005
2001
|
|
|
2006
2002
|
<ng-content></ng-content>
|
|
2007
2003
|
</div>
|
|
2008
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i3.
|
|
2004
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i3.ClrPopoverOrigin, selector: "[clrPopoverOrigin]" }, { kind: "directive", type: i3.ClrPopoverCloseButton, selector: "[clrPopoverCloseButton]", outputs: ["clrPopoverOnCloseChange"] }, { kind: "directive", type: i3.ClrPopoverOpenCloseButton, selector: "[clrPopoverOpenCloseButton]", outputs: ["clrPopoverOpenCloseChange"] }, { kind: "directive", type: i3.ClrPopoverContent, selector: "[clrPopoverContent]", inputs: ["clrPopoverContent", "clrPopoverContentAt", "clrPopoverContentAvailablePositions", "clrPopoverContentType", "clrPopoverContentOutsideClickToClose", "clrPopoverContentScrollToClose", "clrPopoverContentOrigin"] }] }); }
|
|
2009
2005
|
}
|
|
2010
2006
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridFilter, decorators: [{
|
|
2011
2007
|
type: Component,
|
|
@@ -2020,7 +2016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
2020
2016
|
#anchor
|
|
2021
2017
|
[attr.aria-expanded]="ariaExpanded"
|
|
2022
2018
|
[attr.aria-controls]="popoverId"
|
|
2023
|
-
|
|
2019
|
+
clrPopoverOrigin
|
|
2024
2020
|
clrPopoverOpenCloseButton
|
|
2025
2021
|
[class.datagrid-filter-open]="open"
|
|
2026
2022
|
[class.datagrid-filtered]="active"
|
|
@@ -3440,6 +3436,11 @@ class Selection {
|
|
|
3440
3436
|
let newSingle;
|
|
3441
3437
|
let selectionUpdated = false;
|
|
3442
3438
|
updatedItems.forEach(item => {
|
|
3439
|
+
if (item === null || item === undefined) {
|
|
3440
|
+
// Virtual scroll may emit a dense array of undefined slot placeholders. Those must
|
|
3441
|
+
// never match the empty single-selection ref (see virtual-scroll + Single).
|
|
3442
|
+
return;
|
|
3443
|
+
}
|
|
3443
3444
|
const ref = _items.identifyBy(item);
|
|
3444
3445
|
// If one of the updated items is the previously selectedSingle, set it as the new one
|
|
3445
3446
|
if (this.currentSelectionRefs[0] === ref) {
|
|
@@ -3464,6 +3465,9 @@ class Selection {
|
|
|
3464
3465
|
//
|
|
3465
3466
|
// The both loops below that goes over updatedItems could be combined into one.
|
|
3466
3467
|
updatedItems.forEach(item => {
|
|
3468
|
+
if (item === null || item === undefined) {
|
|
3469
|
+
return;
|
|
3470
|
+
}
|
|
3467
3471
|
const ref = _items.identifyBy(item);
|
|
3468
3472
|
if (this.lockedRefs.indexOf(ref) > -1) {
|
|
3469
3473
|
updateLockedRef.push(ref);
|
|
@@ -3474,6 +3478,9 @@ class Selection {
|
|
|
3474
3478
|
// the if statement below results in broken behavior.
|
|
3475
3479
|
if (leftOver.length > 0) {
|
|
3476
3480
|
updatedItems.forEach(item => {
|
|
3481
|
+
if (item === null || item === undefined) {
|
|
3482
|
+
return;
|
|
3483
|
+
}
|
|
3477
3484
|
const ref = _items.identifyBy(item);
|
|
3478
3485
|
// Look in current selected refs array if item is selected, and update actual value
|
|
3479
3486
|
const selectedIndex = this.currentSelectionRefs.indexOf(ref);
|
|
@@ -3844,6 +3851,13 @@ class ClrDatagridSingleSelectionValueAccessor {
|
|
|
3844
3851
|
return value;
|
|
3845
3852
|
}
|
|
3846
3853
|
updateChecked() {
|
|
3854
|
+
// Never mark the radio as checked when there is no real selection (state is null/undefined)
|
|
3855
|
+
// or the row item itself is a virtual-scroll placeholder slot (value is null/undefined).
|
|
3856
|
+
// Otherwise keyOf(undefined) === keyOf(undefined) would falsely check the radio.
|
|
3857
|
+
if (this.state === null || this.state === undefined || this.value === null || this.value === undefined) {
|
|
3858
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'checked', false);
|
|
3859
|
+
return;
|
|
3860
|
+
}
|
|
3847
3861
|
const state = this.keyOf(this.state);
|
|
3848
3862
|
const value = this.keyOf(this.value);
|
|
3849
3863
|
this.renderer.setProperty(this.elementRef.nativeElement, 'checked', state === value);
|
|
@@ -5076,8 +5090,14 @@ class ClrDatagrid {
|
|
|
5076
5090
|
ngAfterViewInit() {
|
|
5077
5091
|
this.keyNavigation.initializeKeyGrid(this.el.nativeElement);
|
|
5078
5092
|
this.updateDetailState();
|
|
5079
|
-
//
|
|
5080
|
-
|
|
5093
|
+
// Emit the state only if it is not an empty object.
|
|
5094
|
+
// Default state of `ClrDatagridStateInterface` is an empty object.
|
|
5095
|
+
// The refresh emit is needed in Server-driven datagrid when pagination is set, but the data is still not requested.
|
|
5096
|
+
// The refresh emit should trigger the data request based on the state provided.
|
|
5097
|
+
// Alternately because pagination might not be set on initialization emit an empty state will trigger a refresh.
|
|
5098
|
+
if (Object.keys(this.stateProvider.state).length > 0) {
|
|
5099
|
+
this.refresh.emit(this.stateProvider.state);
|
|
5100
|
+
}
|
|
5081
5101
|
this._subscriptions.push(this.stickyHeaders.changes.subscribe(() => this.resize()), this.stateProvider.change.subscribe(state => this.refresh.emit(state)), this.selection.change.subscribe(selection => {
|
|
5082
5102
|
if (this.selection.selectable) {
|
|
5083
5103
|
this.selectedChanged.emit(selection);
|
|
@@ -5490,7 +5510,7 @@ class ClrDatagridActionOverflow {
|
|
|
5490
5510
|
[attr.aria-controls]="popoverId"
|
|
5491
5511
|
[attr.aria-expanded]="open"
|
|
5492
5512
|
[attr.aria-label]="buttonLabel || commonStrings.keys.rowActions"
|
|
5493
|
-
|
|
5513
|
+
clrPopoverOrigin
|
|
5494
5514
|
clrPopoverOpenCloseButton
|
|
5495
5515
|
>
|
|
5496
5516
|
<cds-icon shape="ellipsis-vertical" [attr.title]="buttonLabel || commonStrings.keys.rowActions"></cds-icon>
|
|
@@ -5514,7 +5534,7 @@ class ClrDatagridActionOverflow {
|
|
|
5514
5534
|
>
|
|
5515
5535
|
<ng-content></ng-content>
|
|
5516
5536
|
</div>
|
|
5517
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i3.
|
|
5537
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i3.ClrPopoverOrigin, selector: "[clrPopoverOrigin]" }, { kind: "directive", type: i3.ClrPopoverOpenCloseButton, selector: "[clrPopoverOpenCloseButton]", outputs: ["clrPopoverOpenCloseChange"] }, { kind: "directive", type: i3.ClrPopoverContent, selector: "[clrPopoverContent]", inputs: ["clrPopoverContent", "clrPopoverContentAt", "clrPopoverContentAvailablePositions", "clrPopoverContentType", "clrPopoverContentOutsideClickToClose", "clrPopoverContentScrollToClose", "clrPopoverContentOrigin"] }, { kind: "component", type: i2.ClrKeyFocus, selector: "[clrKeyFocus]", inputs: ["clrDirection", "clrFocusOnLoad", "clrKeyFocus"], outputs: ["clrFocusChange"] }] }); }
|
|
5518
5538
|
}
|
|
5519
5539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridActionOverflow, decorators: [{
|
|
5520
5540
|
type: Component,
|
|
@@ -5532,7 +5552,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
5532
5552
|
[attr.aria-controls]="popoverId"
|
|
5533
5553
|
[attr.aria-expanded]="open"
|
|
5534
5554
|
[attr.aria-label]="buttonLabel || commonStrings.keys.rowActions"
|
|
5535
|
-
|
|
5555
|
+
clrPopoverOrigin
|
|
5536
5556
|
clrPopoverOpenCloseButton
|
|
5537
5557
|
>
|
|
5538
5558
|
<cds-icon shape="ellipsis-vertical" [attr.title]="buttonLabel || commonStrings.keys.rowActions"></cds-icon>
|
|
@@ -5702,7 +5722,7 @@ class ClrDatagridColumnToggle {
|
|
|
5702
5722
|
role="button"
|
|
5703
5723
|
type="button"
|
|
5704
5724
|
class="btn btn-sm column-toggle-action"
|
|
5705
|
-
|
|
5725
|
+
clrPopoverOrigin
|
|
5706
5726
|
clrPopoverOpenCloseButton
|
|
5707
5727
|
[attr.aria-controls]="popoverId"
|
|
5708
5728
|
[attr.aria-expanded]="openState"
|
|
@@ -5760,7 +5780,7 @@ class ClrDatagridColumnToggle {
|
|
|
5760
5780
|
<clr-dg-column-toggle-button (clrAllSelected)="allColumnsSelected()"></clr-dg-column-toggle-button>
|
|
5761
5781
|
</div>
|
|
5762
5782
|
</div>
|
|
5763
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i4.ClrControlLabel, selector: "label", inputs: ["id", "for"] }, { kind: "directive", type: i7.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { kind: "component", type: i7.ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { kind: "directive", type: i13.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i13.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i13.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.
|
|
5783
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.CdkTrapFocusModule_CdkTrapFocus, selector: "[cdkTrapFocus]" }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "directive", type: i4.ClrControlLabel, selector: "label", inputs: ["id", "for"] }, { kind: "directive", type: i7.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { kind: "component", type: i7.ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { kind: "directive", type: i13.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i13.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i13.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ClrPopoverOrigin, selector: "[clrPopoverOrigin]" }, { kind: "directive", type: i3.ClrPopoverCloseButton, selector: "[clrPopoverCloseButton]", outputs: ["clrPopoverOnCloseChange"] }, { kind: "directive", type: i3.ClrPopoverOpenCloseButton, selector: "[clrPopoverOpenCloseButton]", outputs: ["clrPopoverOpenCloseChange"] }, { kind: "directive", type: i3.ClrPopoverContent, selector: "[clrPopoverContent]", inputs: ["clrPopoverContent", "clrPopoverContentAt", "clrPopoverContentAvailablePositions", "clrPopoverContentType", "clrPopoverContentOutsideClickToClose", "clrPopoverContentScrollToClose", "clrPopoverContentOrigin"] }, { kind: "component", type: ClrDatagridColumnToggleButton, selector: "clr-dg-column-toggle-button", outputs: ["clrAllSelected"] }] }); }
|
|
5764
5784
|
}
|
|
5765
5785
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridColumnToggle, decorators: [{
|
|
5766
5786
|
type: Component,
|
|
@@ -5771,7 +5791,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
5771
5791
|
role="button"
|
|
5772
5792
|
type="button"
|
|
5773
5793
|
class="btn btn-sm column-toggle-action"
|
|
5774
|
-
|
|
5794
|
+
clrPopoverOrigin
|
|
5775
5795
|
clrPopoverOpenCloseButton
|
|
5776
5796
|
[attr.aria-controls]="popoverId"
|
|
5777
5797
|
[attr.aria-expanded]="openState"
|
|
@@ -7223,16 +7243,6 @@ class DatagridMainRenderer {
|
|
|
7223
7243
|
}
|
|
7224
7244
|
return false;
|
|
7225
7245
|
}
|
|
7226
|
-
/**
|
|
7227
|
-
* Computes the height of the datagrid.
|
|
7228
|
-
*
|
|
7229
|
-
* NOTE: We had to choose to set the height instead of the min-height because
|
|
7230
|
-
* IE 11 requires the height on the parent for the children flex grow/shrink properties to work.
|
|
7231
|
-
* When we used min-height, 1 1 auto doesn't used to work in IE11 :-(
|
|
7232
|
-
* But this doesn't affect the fix. It works in both fixed & variable height datagrids.
|
|
7233
|
-
*
|
|
7234
|
-
* Refer: http://stackoverflow.com/questions/24396205/flex-grow-not-working-in-internet-explorer-11-0
|
|
7235
|
-
*/
|
|
7236
7246
|
computeDatagridHeight() {
|
|
7237
7247
|
const height = window.getComputedStyle(this.el.nativeElement).height;
|
|
7238
7248
|
this.renderer.setStyle(this.el.nativeElement, 'height', height);
|
|
@@ -7441,7 +7451,7 @@ const CLR_DATAGRID_STANDALONE_DIRECTIVES = [ClrDatagridSingleSelectionValueAcces
|
|
|
7441
7451
|
const CLR_DATAGRID_SHARED_DIRECTIVES = [ClrIfExpanded];
|
|
7442
7452
|
class ClrDatagridModule {
|
|
7443
7453
|
constructor() {
|
|
7444
|
-
ClarityIcons.addIcons(ellipsisVerticalIcon, viewColumnsIcon, windowCloseIcon, arrowIcon, timesIcon, stepForward2Icon, angleDoubleIcon, filterGridCircleIcon, filterGridIcon);
|
|
7454
|
+
ClarityIcons.addIcons(ellipsisVerticalIcon, viewColumnsIcon, windowCloseIcon, arrowIcon, timesIcon, twoWayArrowsIcon, stepForward2Icon, angleDoubleIcon, filterGridCircleIcon, filterGridIcon);
|
|
7445
7455
|
}
|
|
7446
7456
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7447
7457
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridModule, declarations: [
|
|
@@ -7498,7 +7508,7 @@ class ClrDatagridModule {
|
|
|
7498
7508
|
ClrOutsideClickModule,
|
|
7499
7509
|
ClrExpandableAnimationModule,
|
|
7500
7510
|
ClrSpinnerModule,
|
|
7501
|
-
|
|
7511
|
+
ClrPopoverModuleNext,
|
|
7502
7512
|
ClrKeyFocusModule, ClrDatagridSingleSelectionValueAccessor, ClrIfExpanded], exports: [
|
|
7503
7513
|
// Core
|
|
7504
7514
|
ClrDatagrid,
|
|
@@ -7554,7 +7564,7 @@ class ClrDatagridModule {
|
|
|
7554
7564
|
ClrOutsideClickModule,
|
|
7555
7565
|
ClrExpandableAnimationModule,
|
|
7556
7566
|
ClrSpinnerModule,
|
|
7557
|
-
|
|
7567
|
+
ClrPopoverModuleNext,
|
|
7558
7568
|
ClrKeyFocusModule] }); }
|
|
7559
7569
|
}
|
|
7560
7570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDatagridModule, decorators: [{
|
|
@@ -7576,7 +7586,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
7576
7586
|
ClrOutsideClickModule,
|
|
7577
7587
|
ClrExpandableAnimationModule,
|
|
7578
7588
|
ClrSpinnerModule,
|
|
7579
|
-
|
|
7589
|
+
ClrPopoverModuleNext,
|
|
7580
7590
|
ClrKeyFocusModule,
|
|
7581
7591
|
CLR_DATAGRID_STANDALONE_DIRECTIVES,
|
|
7582
7592
|
CLR_DATAGRID_SHARED_DIRECTIVES,
|
|
@@ -7597,5 +7607,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
7597
7607
|
* Generated bundle index. Do not edit.
|
|
7598
7608
|
*/
|
|
7599
7609
|
|
|
7600
|
-
export { CLR_DATAGRID_DIRECTIVES, ClrDatagrid, ClrDatagridActionBar, ClrDatagridActionOverflow, ClrDatagridAriaSortOrder, ClrDatagridCell, ClrDatagridColumn, ClrDatagridColumnSeparator, ClrDatagridColumnToggle, ClrDatagridColumnToggleButton, ClrDatagridDetail, ClrDatagridDetailBody, ClrDatagridDetailHeader, ClrDatagridFilter, ClrDatagridFooter, ClrDatagridHideableColumn, ClrDatagridItems, ClrDatagridModule, ClrDatagridPageSize, ClrDatagridPagination, ClrDatagridPlaceholder, ClrDatagridRow, ClrDatagridRowDetail,
|
|
7610
|
+
export { ActionableOompaLoompa, CLR_DATAGRID_DIRECTIVES, ClrDatagrid, ClrDatagridActionBar, ClrDatagridActionOverflow, ClrDatagridAriaSortOrder, ClrDatagridCell, ClrDatagridColumn, ClrDatagridColumnSeparator, ClrDatagridColumnToggle, ClrDatagridColumnToggleButton, ClrDatagridDetail, ClrDatagridDetailBody, ClrDatagridDetailHeader, ClrDatagridFilter, ClrDatagridFooter, ClrDatagridHideableColumn, ClrDatagridItems, ClrDatagridModule, ClrDatagridPageSize, ClrDatagridPagination, ClrDatagridPlaceholder, ClrDatagridRow, ClrDatagridRowDetail, ClrDatagridSelectionCellDirective, ClrDatagridSingleSelectionValueAccessor, ClrDatagridSortOrder, ClrDatagridVirtualScrollDirective, ClrIfDetail, DatagridCellRenderer, DatagridDetailRegisterer, DatagridHeaderRenderer, DatagridMainRenderer, DatagridNumericFilter, DatagridPropertyComparator, DatagridPropertyNumericFilter, DatagridPropertyStringFilter, DatagridRowDetailRenderer, DatagridRowRenderer, DatagridStringFilter, DatagridWillyWonka, ExpandableOompaLoompa, Selection, SelectionType, WrappedCell, WrappedColumn, WrappedRow, selectionTypeAttribute };
|
|
7601
7611
|
//# sourceMappingURL=clr-angular-data-datagrid.mjs.map
|